/*
 * GLOBEXView.java
 */

package vista;

import modelo.maestro.PosicionesRobot2;
import modelo.maestro.Maestro;

import controlador.buzones.MessageTypes;

import bbdd.configuracion.Configuracion;
import bbdd.informes.Informes;

import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;

import vista.informes.VentanaParadas;
import vista.informes.VentanaSesion;
import vista.informes.VentanaTotal;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.HashMap;

import javax.swing.Timer;
import javax.swing.Icon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.SpinnerNumberModel;

/**
 * The application's main frame.
 */
public class GLOBEXView extends FrameView {

	public GLOBEXView(SingleFrameApplication app) {
		super(app);

		initComponents();

		// status bar initialization - message timeout, idle icon and busy
		// animation, etc
		ResourceMap resourceMap = getResourceMap();
		int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
		messageTimer = new Timer(messageTimeout, new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				statusMessageLabel.setText("");
			}
		});
		messageTimer.setRepeats(false);
		int busyAnimationRate = resourceMap
				.getInteger("StatusBar.busyAnimationRate");
		for (int i = 0; i < busyIcons.length; i++) {
			busyIcons[i] = resourceMap
					.getIcon("StatusBar.busyIcons[" + i + "]");
		}
		busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
				statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
			}
		});
		idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
		statusAnimationLabel.setIcon(idleIcon);
		progressBar.setVisible(false);

		// connecting action tasks to status bar via TaskMonitor
		TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
		taskMonitor
				.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
					public void propertyChange(
							java.beans.PropertyChangeEvent evt) {
						String propertyName = evt.getPropertyName();
						if ("started".equals(propertyName)) {
							if (!busyIconTimer.isRunning()) {
								statusAnimationLabel.setIcon(busyIcons[0]);
								busyIconIndex = 0;
								busyIconTimer.start();
							}
							progressBar.setVisible(true);
							progressBar.setIndeterminate(true);
						} else if ("done".equals(propertyName)) {
							busyIconTimer.stop();
							statusAnimationLabel.setIcon(idleIcon);
							progressBar.setVisible(false);
							progressBar.setValue(0);
						} else if ("message".equals(propertyName)) {
							String text = (String) (evt.getNewValue());
							statusMessageLabel.setText((text == null) ? ""
									: text);
							messageTimer.restart();
						} else if ("progress".equals(propertyName)) {
							int value = (Integer) (evt.getNewValue());
							progressBar.setVisible(true);
							progressBar.setIndeterminate(false);
							progressBar.setValue(value);
						}
					}
				});
	}

	@Action
	public void showAboutBox() {
		if (aboutBox == null) {
			JFrame mainFrame = GLOBEXApp.getApplication().getMainFrame();
			aboutBox = new GLOBEXAboutBox(mainFrame);
			aboutBox.setLocationRelativeTo(mainFrame);
		}
		GLOBEXApp.getApplication().show(aboutBox);
	}

	/**
	 * This method is called from within the constructor to initialize the form.
	 * WARNING: Do NOT modify this code. The content of this method is always
	 * regenerated by the Form Editor.
	 */
	@SuppressWarnings("unchecked")
	// <editor-fold defaultstate="collapsed"
	// desc="Generated Code">//GEN-BEGIN:initComponents
	private void initComponents() {

		mainPanel = new javax.swing.JPanel();
		jPanelEstadoCadenaMontaje = new javax.swing.JPanel();
		jLabelAutomataMaestro = new javax.swing.JLabel();
		jLabelAutomata1 = new javax.swing.JLabel();
		jLabelAutomata2 = new javax.swing.JLabel();
		jLabelAutomata3 = new javax.swing.JLabel();
		jLabelRobot1 = new javax.swing.JLabel();
		jLabelRobot2 = new javax.swing.JLabel();
		jPanelControlCadenaMontaje = new javax.swing.JPanel();
		btnStart = new javax.swing.JButton();
		btnStop = new javax.swing.JButton();
		btnEmergencyStop = new javax.swing.JButton();
		jTabbedPane1 = new javax.swing.JTabbedPane();
		jPanelConfiguracion = new javax.swing.JPanel();
		jPanelAutomata1 = new javax.swing.JPanel();
		jLabel19 = new javax.swing.JLabel();
		jSpinnerLongitudCintaEngranajes = new javax.swing.JSpinner();
		jLabel20 = new javax.swing.JLabel();
		jSpinnerVelocidadCintaEngranajes = new javax.swing.JSpinner();
		jLabel22 = new javax.swing.JLabel();
		jLabel25 = new javax.swing.JLabel();
		jLabel26 = new javax.swing.JLabel();
		jLabel28 = new javax.swing.JLabel();
		jLabel40 = new javax.swing.JLabel();
		jSpinnerCapacidadEngranajes = new javax.swing.JSpinner();
		jSpinnerLongitudCintaEjes = new javax.swing.JSpinner();
		jSpinnerVelocidadCintaEjes = new javax.swing.JSpinner();
		jSpinnerCapacidadEjes = new javax.swing.JSpinner();
		jSpinnerTiempoActivacionEstacionMontaje = new javax.swing.JSpinner();
		jPanelAutomata2 = new javax.swing.JPanel();
		jLabel21 = new javax.swing.JLabel();
		jSpinnerLongitudCintaTransferencia = new javax.swing.JSpinner();
		jLabel23 = new javax.swing.JLabel();
		jSpinnerVelocidadCintaTransferencia = new javax.swing.JSpinner();
		jLabel24 = new javax.swing.JLabel();
		jSpinnerTiempoActivacionEstacionSoldadura = new javax.swing.JSpinner();
		jPanelAutomata3 = new javax.swing.JPanel();
		jLabel27 = new javax.swing.JLabel();
		jSpinnerTiempoActivacionEstacionControl = new javax.swing.JSpinner();
		jLabel30 = new javax.swing.JLabel();
		jLabel31 = new javax.swing.JLabel();
		jLabel35 = new javax.swing.JLabel();
		jSpinnerLongitudCintaOk = new javax.swing.JSpinner();
		jSpinnerVelocidadCintaOk = new javax.swing.JSpinner();
		jSpinnerLongitudCintaRechazos = new javax.swing.JSpinner();
		jPanelRobot1 = new javax.swing.JPanel();
		jLabel32 = new javax.swing.JLabel();
		jSpinnerTiempoRecogidaTuercas = new javax.swing.JSpinner();
		jLabel33 = new javax.swing.JLabel();
		jSpinnerTiempoTransporteColocacionEngranajeEje = new javax.swing.JSpinner();
		jLabel34 = new javax.swing.JLabel();
		jSpinnerTiempoTransporteColocacionConjuntoMojado_robot1 = new javax.swing.JSpinner();
		jPanelRobot2 = new javax.swing.JPanel();
		jLabel37 = new javax.swing.JLabel();
		jSpinnerTiempoRecogidaConjuntoMontado = new javax.swing.JSpinner();
		jLabel38 = new javax.swing.JLabel();
		jSpinnerTiempoTransporteColocacionConjuntoMontado_robot2 = new javax.swing.JSpinner();
		jLabel39 = new javax.swing.JLabel();
		jSpinnerTiempoTransporteColocacionConjuntoSoldado = new javax.swing.JSpinner();
		jPanelSimulacion = new javax.swing.JPanel();
		jLabel16 = new javax.swing.JLabel();
		boxErroresSoldadura = new javax.swing.JSpinner();
		jLabel29 = new javax.swing.JLabel();
		boxVelocidadSimulacion = new javax.swing.JSpinner();
		jPanelInformes = new javax.swing.JPanel();
		jSeparator1 = new javax.swing.JSeparator();
		jSeparator2 = new javax.swing.JSeparator();
		panelUltimatanda = new PieChart();
		jLabel41 = new javax.swing.JLabel();
		jLabel42 = new javax.swing.JLabel();
		jLabel48 = new javax.swing.JLabel();
		jLabel49 = new javax.swing.JLabel();
		jButton1 = new javax.swing.JButton();
		jPanel19 = new javax.swing.JPanel();
		jLabel43 = new javax.swing.JLabel();
		jLabel44 = new javax.swing.JLabel();
		jLabel50 = new javax.swing.JLabel();
		jLabel51 = new javax.swing.JLabel();
		jButton3 = new javax.swing.JButton();
		jPanel20 = new javax.swing.JPanel();
		jLabel45 = new javax.swing.JLabel();
		jLabel46 = new javax.swing.JLabel();
		jLabel47 = new javax.swing.JLabel();
		jLabel52 = new javax.swing.JLabel();
		jLabel53 = new javax.swing.JLabel();
		jLabel54 = new javax.swing.JLabel();
		jButton2 = new javax.swing.JButton();
		jSeparator3 = new javax.swing.JSeparator();
		jPanelDebug = new javax.swing.JPanel();
		jPanel7 = new javax.swing.JPanel();
		jScrollPane1 = new javax.swing.JScrollPane();
		jTextAreaLogConsole = new javax.swing.JTextArea();
		jPanelRepresentacionFabrica = new javax.swing.JPanel();
		jLabel_fig_Robot2 = new javax.swing.JLabel();
		jLabel_fig_Robot1 = new javax.swing.JLabel();
		jLabel2 = new javax.swing.JLabel();
		jLabel3 = new javax.swing.JLabel();
		jLabel4 = new javax.swing.JLabel();
		jLabel5 = new javax.swing.JLabel();
		jLabel6 = new javax.swing.JLabel();
		jLabel7 = new javax.swing.JLabel();
		jLabel8 = new javax.swing.JLabel();
		jLabel9 = new javax.swing.JLabel();
		jLabel11 = new javax.swing.JLabel();
		jLabel12 = new javax.swing.JLabel();
		jLabel13 = new javax.swing.JLabel();
		jLabel14 = new javax.swing.JLabel();
		jLabel15 = new javax.swing.JLabel();
		jLabel17 = new javax.swing.JLabel();
		jLabel55 = new javax.swing.JLabel();
		jLabel56 = new javax.swing.JLabel();
		jLabel57 = new javax.swing.JLabel();
		jLabel18 = new javax.swing.JLabel();
		jLabel58 = new javax.swing.JLabel();
		jLabel59 = new javax.swing.JLabel();
		jLabel36 = new javax.swing.JLabel();
		menuBar = new javax.swing.JMenuBar();
		javax.swing.JMenu fileMenu = new javax.swing.JMenu();
		javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
		javax.swing.JMenu helpMenu = new javax.swing.JMenu();
		javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
		statusPanel = new javax.swing.JPanel();
		javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
		statusMessageLabel = new javax.swing.JLabel();
		statusAnimationLabel = new javax.swing.JLabel();
		progressBar = new javax.swing.JProgressBar();
		buttonGroupAutomata2 = new javax.swing.ButtonGroup();
		buttonGroupAutomata1 = new javax.swing.ButtonGroup();
		buttonGroupAutomata3 = new javax.swing.ButtonGroup();

		mainPanel.setName("mainPanel"); // NOI18N
		mainPanel.setPreferredSize(new java.awt.Dimension(1024, 768));

		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		jPanelEstadoCadenaMontaje.setBorder(javax.swing.BorderFactory
				.createTitledBorder(resourceMap
						.getString("jPanelEstadoCadenaMontaje.border.title"))); // NOI18N
		jPanelEstadoCadenaMontaje.setName("jPanelEstadoCadenaMontaje"); // NOI18N

		jLabelAutomataMaestro.setIcon(resourceMap
				.getIcon("jLabelAutomataMaestro.icon")); // NOI18N
		jLabelAutomataMaestro.setText(resourceMap
				.getString("jLabelAutomataMaestro.text")); // NOI18N
		jLabelAutomataMaestro.setName("jLabelAutomataMaestro"); // NOI18N

		jLabelAutomata1.setIcon(resourceMap
				.getIcon("jLabelAutomata1Caido.icon")); // NOI18N
		jLabelAutomata1.setText(resourceMap.getString("jLabelAutomata1.text")); // NOI18N
		jLabelAutomata1.setName("jLabelAutomata1"); // NOI18N

		jLabelAutomata2.setIcon(resourceMap
				.getIcon("jLabelAutomata2Caido.icon")); // NOI18N
		jLabelAutomata2.setText(resourceMap.getString("jLabelAutomata2.text")); // NOI18N
		jLabelAutomata2.setName("jLabelAutomata2"); // NOI18N

		jLabelAutomata3.setIcon(resourceMap
				.getIcon("jLabelAutomata3Caido.icon")); // NOI18N
		jLabelAutomata3.setText(resourceMap.getString("jLabelAutomata3.text")); // NOI18N
		jLabelAutomata3.setName("jLabelAutomata3"); // NOI18N

		jLabelRobot1.setIcon(resourceMap.getIcon("jLabelRobot1Caido.icon")); // NOI18N
		jLabelRobot1.setText(resourceMap.getString("jLabelRobot1.text")); // NOI18N
		jLabelRobot1.setName("jLabelRobot1"); // NOI18N

		jLabelRobot2.setIcon(resourceMap.getIcon("jLabelRobot2.icon")); // NOI18N
		jLabelRobot2.setText(resourceMap.getString("jLabelRobot2.text")); // NOI18N
		jLabelRobot2.setName("jLabelRobot2"); // NOI18N

		javax.swing.GroupLayout jPanelEstadoCadenaMontajeLayout = new javax.swing.GroupLayout(
				jPanelEstadoCadenaMontaje);
		jPanelEstadoCadenaMontaje.setLayout(jPanelEstadoCadenaMontajeLayout);
		jPanelEstadoCadenaMontajeLayout
				.setHorizontalGroup(jPanelEstadoCadenaMontajeLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								jPanelEstadoCadenaMontajeLayout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanelEstadoCadenaMontajeLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																jLabelAutomataMaestro)
														.addComponent(
																jLabelAutomata1)
														.addComponent(
																jLabelAutomata2)
														.addComponent(
																jLabelAutomata3))
										.addGap(191, 191, 191))
						.addGroup(
								jPanelEstadoCadenaMontajeLayout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(jLabelRobot1)
										.addContainerGap(242, Short.MAX_VALUE))
						.addGroup(
								jPanelEstadoCadenaMontajeLayout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(jLabelRobot2)
										.addContainerGap(242, Short.MAX_VALUE)));
		jPanelEstadoCadenaMontajeLayout
				.setVerticalGroup(jPanelEstadoCadenaMontajeLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelEstadoCadenaMontajeLayout
										.createSequentialGroup()
										.addComponent(jLabelAutomataMaestro)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabelAutomata1)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabelAutomata2)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabelAutomata3)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(jLabelRobot1)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)
										.addComponent(jLabelRobot2)));

		jPanelControlCadenaMontaje.setBorder(javax.swing.BorderFactory
				.createTitledBorder(resourceMap
						.getString("jPanelControlCadenaMontaje.border.title"))); // NOI18N
		jPanelControlCadenaMontaje.setName("jPanelControlCadenaMontaje"); // NOI18N

		btnStart.setText(resourceMap.getString("btnStart.text")); // NOI18N
		btnStart.setName("btnStart"); // NOI18N
		btnStart.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				btnStartMouseClicked(evt);
			}
		});

		btnStop.setText(resourceMap.getString("btnStop.text")); // NOI18N
		btnStop.setName("btnStop"); // NOI18N
		btnStop.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				btnStopMouseClicked(evt);
			}
		});

		btnEmergencyStop.setFont(resourceMap.getFont("btnEmergencyStop.font")); // NOI18N
		btnEmergencyStop.setIcon(resourceMap.getIcon("btnEmergencyStop.icon")); // NOI18N
		btnEmergencyStop
				.setText(resourceMap.getString("btnEmergencyStop.text")); // NOI18N
		btnEmergencyStop.setName("btnEmergencyStop"); // NOI18N
		btnEmergencyStop.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				btnEmergencyStopMouseClicked(evt);
			}
		});

		javax.swing.GroupLayout jPanelControlCadenaMontajeLayout = new javax.swing.GroupLayout(
				jPanelControlCadenaMontaje);
		jPanelControlCadenaMontaje.setLayout(jPanelControlCadenaMontajeLayout);
		jPanelControlCadenaMontajeLayout
				.setHorizontalGroup(jPanelControlCadenaMontajeLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelControlCadenaMontajeLayout
										.createSequentialGroup()
										.addGroup(
												jPanelControlCadenaMontajeLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanelControlCadenaMontajeLayout
																		.createSequentialGroup()
																		.addComponent(
																				btnStart,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				101,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				btnStop,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				124,
																				Short.MAX_VALUE))
														.addComponent(
																btnEmergencyStop,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																231,
																Short.MAX_VALUE))
										.addContainerGap()));
		jPanelControlCadenaMontajeLayout
				.setVerticalGroup(jPanelControlCadenaMontajeLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelControlCadenaMontajeLayout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanelControlCadenaMontajeLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(btnStart)
														.addComponent(btnStop))
										.addGap(18, 18, 18)
										.addComponent(
												btnEmergencyStop,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)
										.addContainerGap()));

		jTabbedPane1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
		jTabbedPane1.setName("jTabbedPane1"); // NOI18N

		jPanelConfiguracion.setName("jPanelConfiguracion"); // NOI18N

		jPanelAutomata1.setBorder(javax.swing.BorderFactory
				.createTitledBorder(resourceMap
						.getString("jPanelAutomata1.border.title"))); // NOI18N
		jPanelAutomata1.setName("jPanelAutomata1"); // NOI18N

		jLabel19.setText(resourceMap.getString("jLabel19.text")); // NOI18N
		jLabel19.setName("jLabel19"); // NOI18N

		jSpinnerLongitudCintaEngranajes
				.setName("jSpinnerLongitudCintaEngranajes"); // NOI18N

		jLabel20.setText(resourceMap.getString("jLabel20.text")); // NOI18N
		jLabel20.setName("jLabel20"); // NOI18N

		jSpinnerVelocidadCintaEngranajes
				.setName("jSpinnerVelocidadCintaEngranajes"); // NOI18N

		jLabel22.setText(resourceMap.getString("jLabel22.text")); // NOI18N
		jLabel22.setName("jLabel22"); // NOI18N

		jLabel25.setText(resourceMap.getString("jLabel25.text")); // NOI18N
		jLabel25.setName("jLabel25"); // NOI18N

		jLabel26.setText(resourceMap.getString("jLabel26.text")); // NOI18N
		jLabel26.setName("jLabel26"); // NOI18N

		jLabel28.setText(resourceMap.getString("jLabel28.text")); // NOI18N
		jLabel28.setName("jLabel28"); // NOI18N

		jLabel40.setText(resourceMap.getString("jLabel40.text")); // NOI18N
		jLabel40.setName("jLabel40"); // NOI18N

		jSpinnerCapacidadEngranajes.setName("jSpinnerCapacidadEngranajes"); // NOI18N

		jSpinnerLongitudCintaEjes.setName("jSpinnerLongitudCintaEjes"); // NOI18N

		jSpinnerVelocidadCintaEjes.setName("jSpinnerVelocidadCintaEjes"); // NOI18N

		jSpinnerCapacidadEjes.setName("jSpinnerCapacidadEjes"); // NOI18N

		jSpinnerTiempoActivacionEstacionMontaje
				.setName("jSpinnerTiempoActivacionEstacionMontaje"); // NOI18N

		javax.swing.GroupLayout jPanelAutomata1Layout = new javax.swing.GroupLayout(
				jPanelAutomata1);
		jPanelAutomata1.setLayout(jPanelAutomata1Layout);
		jPanelAutomata1Layout
				.setHorizontalGroup(jPanelAutomata1Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelAutomata1Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanelAutomata1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(jLabel40)
														.addComponent(jLabel28)
														.addComponent(jLabel26)
														.addComponent(jLabel25)
														.addComponent(jLabel22)
														.addComponent(jLabel20)
														.addComponent(jLabel19))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																jSpinnerLongitudCintaEngranajes,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																49,
																Short.MAX_VALUE)
														.addComponent(
																jSpinnerVelocidadCintaEngranajes,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																49,
																Short.MAX_VALUE)
														.addComponent(
																jSpinnerCapacidadEngranajes,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																49,
																Short.MAX_VALUE)
														.addComponent(
																jSpinnerLongitudCintaEjes,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																49,
																Short.MAX_VALUE)
														.addComponent(
																jSpinnerVelocidadCintaEjes,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																49,
																Short.MAX_VALUE)
														.addComponent(
																jSpinnerCapacidadEjes,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																49,
																Short.MAX_VALUE)
														.addComponent(
																jSpinnerTiempoActivacionEstacionMontaje,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																49,
																Short.MAX_VALUE))
										.addContainerGap()));
		jPanelAutomata1Layout
				.setVerticalGroup(jPanelAutomata1Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelAutomata1Layout
										.createSequentialGroup()
										.addGroup(
												jPanelAutomata1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel19)
														.addComponent(
																jSpinnerLongitudCintaEngranajes,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel20)
														.addComponent(
																jSpinnerVelocidadCintaEngranajes,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel22)
														.addComponent(
																jSpinnerCapacidadEngranajes,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel25)
														.addComponent(
																jSpinnerLongitudCintaEjes,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel26)
														.addComponent(
																jSpinnerVelocidadCintaEjes,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel28)
														.addComponent(
																jSpinnerCapacidadEjes,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel40)
														.addComponent(
																jSpinnerTiempoActivacionEstacionMontaje,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addContainerGap(
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)));

		jSpinnerLongitudCintaEngranajes.setModel(new SpinnerNumberModel(1, 1,
				999999, 1));
		jSpinnerVelocidadCintaEngranajes.setModel(new SpinnerNumberModel(1, 1,
				999999, 1));
		jSpinnerCapacidadEngranajes.setModel(new SpinnerNumberModel(1, 1,
				999999, 1));
		jSpinnerLongitudCintaEjes.setModel(new SpinnerNumberModel(1, 1, 999999,
				1));
		jSpinnerVelocidadCintaEjes.setModel(new SpinnerNumberModel(1, 1,
				999999, 1));
		jSpinnerCapacidadEjes.setModel(new SpinnerNumberModel(1, 1, 999999, 1));
		jSpinnerTiempoActivacionEstacionMontaje
				.setModel(new SpinnerNumberModel(1, 1, 999999, 1));

		jPanelAutomata2.setBorder(javax.swing.BorderFactory
				.createTitledBorder(resourceMap
						.getString("jPanelAutomata2.border.title"))); // NOI18N
		jPanelAutomata2.setName("jPanelAutomata2"); // NOI18N

		jLabel21.setText(resourceMap.getString("jLabel21.text")); // NOI18N
		jLabel21.setName("jLabel21"); // NOI18N

		jSpinnerLongitudCintaTransferencia
				.setName("jSpinnerLongitudCintaTransferencia"); // NOI18N

		jLabel23.setText(resourceMap.getString("jLabel23.text")); // NOI18N
		jLabel23.setName("jLabel23"); // NOI18N

		jSpinnerVelocidadCintaTransferencia
				.setName("jSpinnerVelocidadCintaTransferencia"); // NOI18N

		jLabel24.setText(resourceMap.getString("jLabel24.text")); // NOI18N
		jLabel24.setName("jLabel24"); // NOI18N

		jSpinnerTiempoActivacionEstacionSoldadura
				.setName("jSpinnerTiempoActivacionEstacionSoldadura"); // NOI18N

		javax.swing.GroupLayout jPanelAutomata2Layout = new javax.swing.GroupLayout(
				jPanelAutomata2);
		jPanelAutomata2.setLayout(jPanelAutomata2Layout);
		jPanelAutomata2Layout
				.setHorizontalGroup(jPanelAutomata2Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelAutomata2Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanelAutomata2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(jLabel24)
														.addComponent(jLabel23)
														.addComponent(jLabel21))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																jSpinnerVelocidadCintaTransferencia,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																54,
																Short.MAX_VALUE)
														.addComponent(
																jSpinnerTiempoActivacionEstacionSoldadura,
																javax.swing.GroupLayout.Alignment.TRAILING,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																54,
																Short.MAX_VALUE)
														.addComponent(
																jSpinnerLongitudCintaTransferencia,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																54,
																Short.MAX_VALUE))
										.addContainerGap()));
		jPanelAutomata2Layout
				.setVerticalGroup(jPanelAutomata2Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelAutomata2Layout
										.createSequentialGroup()
										.addGroup(
												jPanelAutomata2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel21)
														.addComponent(
																jSpinnerLongitudCintaTransferencia,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel23)
														.addComponent(
																jSpinnerVelocidadCintaTransferencia,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel24)
														.addComponent(
																jSpinnerTiempoActivacionEstacionSoldadura,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addContainerGap()));

		jSpinnerLongitudCintaTransferencia.setModel(new SpinnerNumberModel(1,
				1, 999999, 1));
		jSpinnerVelocidadCintaTransferencia.setModel(new SpinnerNumberModel(1,
				1, 999999, 1));
		jSpinnerTiempoActivacionEstacionSoldadura
				.setModel(new SpinnerNumberModel(1, 1, 999999, 1));

		jPanelAutomata3.setBorder(javax.swing.BorderFactory
				.createTitledBorder(resourceMap
						.getString("jPanelAutomata3.border.title"))); // NOI18N
		jPanelAutomata3.setName("jPanelAutomata3"); // NOI18N

		jLabel27.setText(resourceMap.getString("jLabel27.text")); // NOI18N
		jLabel27.setName("jLabel27"); // NOI18N

		jSpinnerTiempoActivacionEstacionControl
				.setName("jSpinnerTiempoActivacionEstacionControl"); // NOI18N

		jLabel30.setText(resourceMap.getString("jLabel30.text")); // NOI18N
		jLabel30.setName("jLabel30"); // NOI18N

		jLabel31.setText(resourceMap.getString("jLabel31.text")); // NOI18N
		jLabel31.setName("jLabel31"); // NOI18N

		jLabel35.setText(resourceMap.getString("jLabel35.text")); // NOI18N
		jLabel35.setName("jLabel35"); // NOI18N

		jSpinnerLongitudCintaOk.setName("jSpinnerLongitudCintaOk"); // NOI18N

		jSpinnerVelocidadCintaOk.setName("jSpinnerVelocidadCintaOk"); // NOI18N

		jSpinnerLongitudCintaRechazos.setName("jSpinnerLongitudCintaRechazos"); // NOI18N

		javax.swing.GroupLayout jPanelAutomata3Layout = new javax.swing.GroupLayout(
				jPanelAutomata3);
		jPanelAutomata3.setLayout(jPanelAutomata3Layout);
		jPanelAutomata3Layout
				.setHorizontalGroup(jPanelAutomata3Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelAutomata3Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanelAutomata3Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(jLabel27)
														.addComponent(jLabel30)
														.addComponent(jLabel31)
														.addComponent(jLabel35))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata3Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																jSpinnerLongitudCintaRechazos,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																53,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(
																jSpinnerVelocidadCintaOk,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																53,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(
																jSpinnerLongitudCintaOk,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																53,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(
																jSpinnerTiempoActivacionEstacionControl,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																53,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addContainerGap(
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)));
		jPanelAutomata3Layout
				.setVerticalGroup(jPanelAutomata3Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelAutomata3Layout
										.createSequentialGroup()
										.addGroup(
												jPanelAutomata3Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel27)
														.addComponent(
																jSpinnerTiempoActivacionEstacionControl,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata3Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel30)
														.addComponent(
																jSpinnerLongitudCintaOk,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata3Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING)
														.addComponent(jLabel31)
														.addComponent(
																jSpinnerVelocidadCintaOk,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelAutomata3Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel35)
														.addComponent(
																jSpinnerLongitudCintaRechazos,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))));

		jSpinnerTiempoActivacionEstacionControl
				.setModel(new SpinnerNumberModel(1, 1, 999999, 1));
		jSpinnerLongitudCintaOk
				.setModel(new SpinnerNumberModel(1, 1, 999999, 1));
		jSpinnerVelocidadCintaOk.setModel(new SpinnerNumberModel(1, 1, 999999,
				1));
		jSpinnerLongitudCintaRechazos.setModel(new SpinnerNumberModel(1, 1,
				999999, 1));

		jPanelRobot1.setBorder(javax.swing.BorderFactory
				.createTitledBorder(resourceMap
						.getString("jPanelRobot1.border.title"))); // NOI18N
		jPanelRobot1.setName("jPanelRobot1"); // NOI18N

		jLabel32.setText(resourceMap.getString("jLabel32.text")); // NOI18N
		jLabel32.setName("jLabel32"); // NOI18N

		jSpinnerTiempoRecogidaTuercas.setName("jSpinnerTiempoRecogidaTuercas"); // NOI18N

		jLabel33.setText(resourceMap.getString("jLabel33.text")); // NOI18N
		jLabel33.setName("jLabel33"); // NOI18N

		jSpinnerTiempoTransporteColocacionEngranajeEje
				.setName("jSpinnerTiempoTransporteColocacionEngranajeEje"); // NOI18N

		jLabel34.setText(resourceMap.getString("jLabel34.text")); // NOI18N
		jLabel34.setName("jLabel34"); // NOI18N

		jSpinnerTiempoTransporteColocacionConjuntoMojado_robot1
				.setName("jSpinnerTiempoTransporteColocacionConjuntoMojado_robot1"); // NOI18N

		javax.swing.GroupLayout jPanelRobot1Layout = new javax.swing.GroupLayout(
				jPanelRobot1);
		jPanelRobot1.setLayout(jPanelRobot1Layout);
		jPanelRobot1Layout
				.setHorizontalGroup(jPanelRobot1Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelRobot1Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanelRobot1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(jLabel33)
														.addComponent(jLabel34)
														.addComponent(jLabel32))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelRobot1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																jSpinnerTiempoRecogidaTuercas,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																52,
																Short.MAX_VALUE)
														.addComponent(
																jSpinnerTiempoTransporteColocacionConjuntoMojado_robot1,
																javax.swing.GroupLayout.Alignment.TRAILING,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																52,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(
																jSpinnerTiempoTransporteColocacionEngranajeEje,
																javax.swing.GroupLayout.Alignment.TRAILING,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																52,
																Short.MAX_VALUE))
										.addContainerGap()));
		jPanelRobot1Layout
				.setVerticalGroup(jPanelRobot1Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelRobot1Layout
										.createSequentialGroup()
										.addGroup(
												jPanelRobot1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel32)
														.addComponent(
																jSpinnerTiempoRecogidaTuercas,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelRobot1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel33)
														.addComponent(
																jSpinnerTiempoTransporteColocacionEngranajeEje,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelRobot1Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																jSpinnerTiempoTransporteColocacionConjuntoMojado_robot1,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(jLabel34))));

		jSpinnerTiempoRecogidaTuercas.setModel(new SpinnerNumberModel(1, 1,
				999999, 1));
		jSpinnerTiempoTransporteColocacionEngranajeEje
				.setModel(new SpinnerNumberModel(1, 1, 999999, 1));
		jSpinnerTiempoTransporteColocacionConjuntoMojado_robot1
				.setModel(new SpinnerNumberModel(1, 1, 999999, 1));

		jPanelRobot2.setBorder(javax.swing.BorderFactory
				.createTitledBorder(resourceMap
						.getString("jPanelRobot2.border.title"))); // NOI18N
		jPanelRobot2.setName("jPanelRobot2"); // NOI18N

		jLabel37.setText(resourceMap.getString("jLabel37.text")); // NOI18N
		jLabel37.setName("jLabel37"); // NOI18N

		jSpinnerTiempoRecogidaConjuntoMontado
				.setName("jSpinnerTiempoRecogidaConjuntoMontado"); // NOI18N

		jLabel38.setText(resourceMap.getString("jLabel38.text")); // NOI18N
		jLabel38.setName("jLabel38"); // NOI18N

		jSpinnerTiempoTransporteColocacionConjuntoMontado_robot2
				.setName("jSpinnerTiempoTransporteColocacionConjuntoMontado_robot2"); // NOI18N

		jLabel39.setText(resourceMap.getString("jLabel39.text")); // NOI18N
		jLabel39.setName("jLabel39"); // NOI18N

		jSpinnerTiempoTransporteColocacionConjuntoSoldado
				.setName("jSpinnerTiempoTransporteColocacionConjuntoSoldado"); // NOI18N

		javax.swing.GroupLayout jPanelRobot2Layout = new javax.swing.GroupLayout(
				jPanelRobot2);
		jPanelRobot2.setLayout(jPanelRobot2Layout);
		jPanelRobot2Layout
				.setHorizontalGroup(jPanelRobot2Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelRobot2Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanelRobot2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(jLabel38)
														.addComponent(jLabel39)
														.addComponent(jLabel37))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelRobot2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING,
																false)
														.addComponent(
																jSpinnerTiempoRecogidaConjuntoMontado)
														.addComponent(
																jSpinnerTiempoTransporteColocacionConjuntoMontado_robot2)
														.addComponent(
																jSpinnerTiempoTransporteColocacionConjuntoSoldado,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																52,
																Short.MAX_VALUE))
										.addContainerGap(
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)));
		jPanelRobot2Layout
				.setVerticalGroup(jPanelRobot2Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelRobot2Layout
										.createSequentialGroup()
										.addGroup(
												jPanelRobot2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel37)
														.addComponent(
																jSpinnerTiempoRecogidaConjuntoMontado,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelRobot2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel38)
														.addComponent(
																jSpinnerTiempoTransporteColocacionConjuntoMontado_robot2,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelRobot2Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel39)
														.addComponent(
																jSpinnerTiempoTransporteColocacionConjuntoSoldado,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))));

		jSpinnerTiempoRecogidaConjuntoMontado.setModel(new SpinnerNumberModel(
				1, 1, 999999, 1));
		jSpinnerTiempoTransporteColocacionConjuntoMontado_robot2
				.setModel(new SpinnerNumberModel(1, 1, 999999, 1));
		jSpinnerTiempoTransporteColocacionConjuntoSoldado
				.setModel(new SpinnerNumberModel(1, 1, 999999, 1));

		javax.swing.GroupLayout jPanelConfiguracionLayout = new javax.swing.GroupLayout(
				jPanelConfiguracion);
		jPanelConfiguracion.setLayout(jPanelConfiguracionLayout);
		jPanelConfiguracionLayout
				.setHorizontalGroup(jPanelConfiguracionLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelConfiguracionLayout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(
												jPanelAutomata1,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelConfiguracionLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																jPanelAutomata2,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																jPanelAutomata3,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelConfiguracionLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING,
																false)
														.addComponent(
																jPanelRobot1,
																0,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																jPanelRobot2,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE))
										.addGap(574, 574, 574)));
		jPanelConfiguracionLayout
				.setVerticalGroup(jPanelConfiguracionLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelConfiguracionLayout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanelConfiguracionLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanelConfiguracionLayout
																		.createSequentialGroup()
																		.addComponent(
																				jPanelAutomata2,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jPanelAutomata3,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE))
														.addGroup(
																jPanelConfiguracionLayout
																		.createSequentialGroup()
																		.addComponent(
																				jPanelRobot1,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jPanelRobot2,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE))
														.addComponent(
																jPanelAutomata1,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addContainerGap(17, Short.MAX_VALUE)));

		jPanelRobot2
				.getAccessibleContext()
				.setAccessibleName(
						resourceMap
								.getString("jPanel14.AccessibleContext.accessibleName")); // NOI18N

		jTabbedPane1.addTab(resourceMap
				.getString("jPanelConfiguracion.TabConstraints.tabTitle"),
				jPanelConfiguracion); // NOI18N

		jPanelSimulacion.setName("jPanelSimulacion"); // NOI18N

		jLabel16.setText(resourceMap.getString("jLabel16.text")); // NOI18N
		jLabel16.setName("jLabel16"); // NOI18N

		boxErroresSoldadura.setName("boxErroresSoldadura"); // NOI18N

		jLabel29.setText(resourceMap.getString("jLabel29.text")); // NOI18N
		jLabel29.setName("jLabel29"); // NOI18N

		boxVelocidadSimulacion.setName("boxVelocidadSimulacion"); // NOI18N
		boxVelocidadSimulacion.setValue(1);

		javax.swing.GroupLayout jPanelSimulacionLayout = new javax.swing.GroupLayout(
				jPanelSimulacion);
		jPanelSimulacion.setLayout(jPanelSimulacionLayout);
		jPanelSimulacionLayout
				.setHorizontalGroup(jPanelSimulacionLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelSimulacionLayout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanelSimulacionLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanelSimulacionLayout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel16)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
																		.addComponent(
																				boxErroresSoldadura,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				41,
																				javax.swing.GroupLayout.PREFERRED_SIZE))
														.addGroup(
																jPanelSimulacionLayout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel29)
																		.addGap(10,
																				10,
																				10)
																		.addComponent(
																				boxVelocidadSimulacion,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				41,
																				javax.swing.GroupLayout.PREFERRED_SIZE)))
										.addContainerGap(952, Short.MAX_VALUE)));
		jPanelSimulacionLayout
				.setVerticalGroup(jPanelSimulacionLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelSimulacionLayout
										.createSequentialGroup()
										.addGap(37, 37, 37)
										.addGroup(
												jPanelSimulacionLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel16)
														.addComponent(
																boxErroresSoldadura,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelSimulacionLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																boxVelocidadSimulacion,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addComponent(jLabel29))
										.addContainerGap(186, Short.MAX_VALUE)));

		boxErroresSoldadura.setModel(new SpinnerNumberModel(0, 0, 100, 1));
		boxVelocidadSimulacion
				.setModel(new SpinnerNumberModel(1, 1, 999999, 1));

		jTabbedPane1.addTab(resourceMap
				.getString("jPanelSimulacion.TabConstraints.tabTitle"),
				jPanelSimulacion); // NOI18N

		jPanelInformes.setName("jPanelInformes"); // NOI18N

		jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
		jSeparator1.setName("jSeparator1"); // NOI18N

		jSeparator2.setOrientation(javax.swing.SwingConstants.VERTICAL);
		jSeparator2.setName("jSeparator2"); // NOI18N

		panelUltimatanda.setBorder(javax.swing.BorderFactory
				.createTitledBorder(resourceMap
						.getString("panelUltimatanda.border.title"))); // NOI18N
		panelUltimatanda.setName("panelUltimatanda"); // NOI18N

		jLabel41.setText(resourceMap.getString("jLabel41.text")); // NOI18N
		jLabel41.setName("jLabel41"); // NOI18N

		jLabel42.setText(resourceMap.getString("jLabel42.text")); // NOI18N
		jLabel42.setName("jLabel42"); // NOI18N

		jLabel48.setText(resourceMap.getString("jLabel48.text")); // NOI18N
		jLabel48.setName("jLabel48"); // NOI18N
		jLabel48.setText("" + Informes.getSesion_incorrectos());

		jLabel49.setText(resourceMap.getString("jLabel49.text")); // NOI18N
		jLabel49.setName("jLabel49"); // NOI18N
		jLabel49.setText("" + Informes.getSesion_correctos());

		jButton1.setText(resourceMap.getString("jButton_grafico_tanda.text")); // NOI18N
		jButton1.setName("jButton_grafico_tanda"); // NOI18N
		jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				btnInformeTandaMouseClicked(evt);
			}
		});

		javax.swing.GroupLayout panelUltimatandaLayout = new javax.swing.GroupLayout(
				panelUltimatanda);
		panelUltimatanda.setLayout(panelUltimatandaLayout);
		panelUltimatandaLayout
				.setHorizontalGroup(panelUltimatandaLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								panelUltimatandaLayout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												panelUltimatandaLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING,
																false)
														.addGroup(
																panelUltimatandaLayout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel42)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addComponent(
																				jLabel49))
														.addGroup(
																panelUltimatandaLayout
																		.createSequentialGroup()
																		.addGroup(
																				panelUltimatandaLayout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING)
																						.addComponent(
																								jButton1)
																						.addComponent(
																								jLabel41))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jLabel48)))
										.addContainerGap(68, Short.MAX_VALUE)));
		panelUltimatandaLayout
				.setVerticalGroup(panelUltimatandaLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								panelUltimatandaLayout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												panelUltimatandaLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel41)
														.addComponent(jLabel48))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												panelUltimatandaLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel42)
														.addComponent(jLabel49))
										.addGap(70, 70, 70)
										.addComponent(jButton1)
										.addContainerGap(82, Short.MAX_VALUE)));

		jPanel19.setBorder(javax.swing.BorderFactory
				.createTitledBorder(resourceMap
						.getString("jPanel19.border.title"))); // NOI18N
		jPanel19.setName("jPanel19"); // NOI18N

		jLabel43.setText(resourceMap.getString("jLabel43.text")); // NOI18N
		jLabel43.setName("jLabel43"); // NOI18N

		jLabel44.setText(resourceMap.getString("jLabel44.text")); // NOI18N
		jLabel44.setName("jLabel44"); // NOI18N

		jLabel50.setText(resourceMap.getString("jLabel50.text")); // NOI18N
		jLabel50.setName("jLabel50"); // NOI18N
		jLabel50.setText("" + Informes.getTotal_incorrectos());

		jLabel51.setText(resourceMap.getString("jLabel51.text")); // NOI18N
		jLabel51.setName("jLabel51"); // NOI18N
		jLabel51.setText("" + Informes.getTotal_correctos());

		jButton3.setText(resourceMap
				.getString("jButton_grafico_fabricacion.text")); // NOI18N
		jButton3.setName("jButton_grafico_fabricacion"); // NOI18N
		jButton3.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				btnInformeTotalMouseClicked(evt);
			}
		});

		javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(
				jPanel19);
		jPanel19.setLayout(jPanel19Layout);
		jPanel19Layout
				.setHorizontalGroup(jPanel19Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel19Layout
										.createSequentialGroup()
										.addGroup(
												jPanel19Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING)
														.addComponent(jButton3)
														.addGroup(
																jPanel19Layout
																		.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																		.addComponent(
																				jLabel43)
																		.addComponent(
																				jLabel44)))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel19Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(jLabel51)
														.addComponent(jLabel50))
										.addContainerGap(70, Short.MAX_VALUE)));
		jPanel19Layout
				.setVerticalGroup(jPanel19Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel19Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel19Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel43)
														.addComponent(jLabel50))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel19Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel44)
														.addComponent(jLabel51))
										.addGap(71, 71, 71)
										.addComponent(jButton3)
										.addContainerGap(81, Short.MAX_VALUE)));

		jPanel20.setBorder(javax.swing.BorderFactory
				.createTitledBorder(resourceMap
						.getString("jPanel20.border.title"))); // NOI18N
		jPanel20.setName("jPanel20"); // NOI18N

		jLabel45.setText(resourceMap.getString("jLabel45.text")); // NOI18N
		jLabel45.setName("jLabel45"); // NOI18N

		jLabel46.setText(resourceMap.getString("jLabel46.text")); // NOI18N
		jLabel46.setName("jLabel46"); // NOI18N

		jLabel47.setText(resourceMap.getString("jLabel47.text")); // NOI18N
		jLabel47.setName("jLabel47"); // NOI18N

		jLabel52.setText(resourceMap.getString("jLabel52.text")); // NOI18N
		jLabel52.setName("jLabel52"); // NOI18N
		jLabel52.setText("" + Informes.getTotal_paradas_emergencia());

		jLabel53.setText(resourceMap.getString("jLabel53.text")); // NOI18N
		jLabel53.setName("jLabel53"); // NOI18N
		jLabel53.setText("" + Informes.getTotal_paradas_normales());

		jLabel54.setText(resourceMap.getString("jLabel54.text")); // NOI18N
		jLabel54.setName("jLabel54"); // NOI18N
		jLabel54.setText("" + Informes.getTotal_arranques());

		jButton2.setText(resourceMap.getString("jButton_grafico_sistema.text")); // NOI18N
		jButton2.setName("jButton_grafico_sistema"); // NOI18N
		jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
			public void mouseClicked(java.awt.event.MouseEvent evt) {
				btnInformeArranquesMouseClicked(evt);
			}
		});

		javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(
				jPanel20);
		jPanel20.setLayout(jPanel20Layout);
		jPanel20Layout
				.setHorizontalGroup(jPanel20Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel20Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel20Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING)
														.addComponent(jButton2)
														.addGroup(
																jPanel20Layout
																		.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																		.addComponent(
																				jLabel46)
																		.addComponent(
																				jLabel45)
																		.addComponent(
																				jLabel47)))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel20Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(jLabel54)
														.addComponent(jLabel53)
														.addComponent(jLabel52))
										.addContainerGap(45, Short.MAX_VALUE)));
		jPanel20Layout
				.setVerticalGroup(jPanel20Layout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanel20Layout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanel20Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel45)
														.addComponent(jLabel53))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel20Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel46)
														.addComponent(jLabel52))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanel20Layout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(jLabel47)
														.addComponent(jLabel54))
										.addGap(49, 49, 49)
										.addComponent(jButton2)
										.addContainerGap(83, Short.MAX_VALUE)));

		jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);
		jSeparator3.setName("jSeparator3"); // NOI18N

		javax.swing.GroupLayout jPanelInformesLayout = new javax.swing.GroupLayout(
				jPanelInformes);
		jPanelInformes.setLayout(jPanelInformesLayout);
		jPanelInformesLayout
				.setHorizontalGroup(jPanelInformesLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelInformesLayout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(
												panelUltimatanda,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jSeparator1,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jPanel19,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jSeparator3,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addGap(10, 10, 10)
										.addComponent(
												jPanel20,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addGap(602, 602, 602)
										.addComponent(
												jSeparator2,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addContainerGap(
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)));
		jPanelInformesLayout
				.setVerticalGroup(jPanelInformesLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								jPanelInformesLayout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												jPanelInformesLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING)
														.addComponent(
																jSeparator3,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																247,
																Short.MAX_VALUE)
														.addComponent(
																jPanel20,
																javax.swing.GroupLayout.Alignment.LEADING,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																jPanel19,
																javax.swing.GroupLayout.Alignment.LEADING,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																panelUltimatanda,
																javax.swing.GroupLayout.Alignment.LEADING,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																jSeparator1,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																247,
																Short.MAX_VALUE)
														.addComponent(
																jSeparator2,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																247,
																Short.MAX_VALUE))
										.addContainerGap()));

		jTabbedPane1
				.addTab(resourceMap
						.getString("jPanelInformes.TabConstraints.tabTitle"),
						jPanelInformes); // NOI18N

		jPanelDebug.setName("jPanelDebug"); // NOI18N

		jPanel7.setBorder(javax.swing.BorderFactory
				.createTitledBorder(resourceMap
						.getString("jPanel7.border.title"))); // NOI18N
		jPanel7.setName("jPanel7"); // NOI18N

		jScrollPane1.setName("jScrollPane1"); // NOI18N

		jTextAreaLogConsole.setBackground(resourceMap
				.getColor("jTextAreaLogConsole.background")); // NOI18N
		jTextAreaLogConsole.setColumns(20);
		jTextAreaLogConsole.setFont(resourceMap
				.getFont("jTextAreaLogConsole.font")); // NOI18N
		jTextAreaLogConsole.setForeground(resourceMap
				.getColor("jTextAreaLogConsole.foreground")); // NOI18N
		jTextAreaLogConsole.setRows(5);
		jTextAreaLogConsole.setText(resourceMap
				.getString("jTextAreaLogConsole.text")); // NOI18N
		jTextAreaLogConsole.setName("jTextAreaLogConsole"); // NOI18N
		jScrollPane1.setViewportView(jTextAreaLogConsole);

		javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(
				jPanel7);
		jPanel7.setLayout(jPanel7Layout);
		jPanel7Layout.setHorizontalGroup(jPanel7Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				jPanel7Layout
						.createSequentialGroup()
						.addContainerGap()
						.addComponent(jScrollPane1,
								javax.swing.GroupLayout.DEFAULT_SIZE, 756,
								Short.MAX_VALUE).addContainerGap()));
		jPanel7Layout.setVerticalGroup(jPanel7Layout.createParallelGroup(
				javax.swing.GroupLayout.Alignment.LEADING).addGroup(
				javax.swing.GroupLayout.Alignment.TRAILING,
				jPanel7Layout
						.createSequentialGroup()
						.addComponent(jScrollPane1,
								javax.swing.GroupLayout.DEFAULT_SIZE, 209,
								Short.MAX_VALUE).addContainerGap()));

		javax.swing.GroupLayout jPanelDebugLayout = new javax.swing.GroupLayout(
				jPanelDebug);
		jPanelDebug.setLayout(jPanelDebugLayout);
		jPanelDebugLayout.setHorizontalGroup(jPanelDebugLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						jPanelDebugLayout
								.createSequentialGroup()
								.addContainerGap()
								.addComponent(jPanel7,
										javax.swing.GroupLayout.PREFERRED_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.PREFERRED_SIZE)
								.addContainerGap(338, Short.MAX_VALUE)));
		jPanelDebugLayout.setVerticalGroup(jPanelDebugLayout
				.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
				.addGroup(
						jPanelDebugLayout
								.createSequentialGroup()
								.addContainerGap()
								.addComponent(jPanel7,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										javax.swing.GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE).addContainerGap()));

		jTabbedPane1.addTab(
				resourceMap.getString("jPanelDebug.TabConstraints.tabTitle"),
				jPanelDebug); // NOI18N

		jPanelRepresentacionFabrica.setBorder(javax.swing.BorderFactory
				.createEtchedBorder());
		jPanelRepresentacionFabrica.setName("jPanelRepresentacionFabrica"); // NOI18N
		jPanelRepresentacionFabrica.setPreferredSize(new java.awt.Dimension(
				886, 480));

		jLabel_fig_Robot2
				.setIcon(resourceMap.getIcon("jLabel_fig_Robot2.icon")); // NOI18N
		jLabel_fig_Robot2.setText(resourceMap
				.getString("jLabel_fig_Robot2.text")); // NOI18N
		jLabel_fig_Robot2.setName("jLabel_fig_Robot2"); // NOI18N

		jLabel_fig_Robot1
				.setIcon(resourceMap.getIcon("jLabel_fig_Robot1.icon")); // NOI18N
		jLabel_fig_Robot1.setName("jLabel_fig_Robot1"); // NOI18N

		jLabel2.setIcon(resourceMap.getIcon("jLabel2.icon")); // NOI18N
		jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
		jLabel2.setName("jLabel2"); // NOI18N

		jLabel3.setIcon(resourceMap.getIcon("jLabel3.icon")); // NOI18N
		jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
		jLabel3.setName("jLabel3"); // NOI18N

		jLabel4.setIcon(resourceMap.getIcon("jLabel4.icon")); // NOI18N
		jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
		jLabel4.setName("jLabel4"); // NOI18N

		jLabel5.setIcon(resourceMap.getIcon("jLabel5.icon")); // NOI18N
		jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
		jLabel5.setName("jLabel5"); // NOI18N

		jLabel6.setName("jLabel6"); // NOI18N

		jLabel7.setName("jLabel7"); // NOI18N

		jLabel8.setIcon(resourceMap.getIcon("jLabel8.icon")); // NOI18N
		jLabel8.setName("jLabel8"); // NOI18N

		jLabel9.setIcon(resourceMap.getIcon("jLabel9.icon")); // NOI18N
		jLabel9.setName("jLabel9"); // NOI18N

		jLabel11.setIcon(resourceMap.getIcon("jLabel11.icon")); // NOI18N
		jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N
		jLabel11.setName("jLabel11"); // NOI18N

		jLabel12.setIcon(resourceMap.getIcon("jLabel12.icon")); // NOI18N
		jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
		jLabel12.setName("jLabel12"); // NOI18N

		jLabel13.setIcon(resourceMap.getIcon("jLabel13.icon")); // NOI18N
		jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N
		jLabel13.setName("jLabel13"); // NOI18N

		jLabel14.setIcon(resourceMap.getIcon("jLabel14.icon")); // NOI18N
		jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
		jLabel14.setName("jLabel14"); // NOI18N

		jLabel15.setIcon(resourceMap.getIcon("jLabel15.icon")); // NOI18N
		jLabel15.setText(resourceMap.getString("jLabel15.text")); // NOI18N
		jLabel15.setName("jLabel15"); // NOI18N

		jLabel17.setIcon(resourceMap.getIcon("jLabel17.icon")); // NOI18N
		jLabel17.setText(resourceMap.getString("jLabel17.text")); // NOI18N
		jLabel17.setName("jLabel17"); // NOI18N

		jLabel55.setText(resourceMap.getString("jLabel55.text")); // NOI18N
		jLabel55.setName("jLabel55"); // NOI18N

		jLabel56.setText(resourceMap.getString("jLabel56.text")); // NOI18N
		jLabel56.setName("jLabel56"); // NOI18N

		jLabel57.setText(resourceMap.getString("jLabel57.text")); // NOI18N
		jLabel57.setName("jLabel57"); // NOI18N

		jLabel18.setIcon(resourceMap.getIcon("jLabel18.icon"));
		jLabel18.setText(resourceMap.getString("jLabel18.text")); // NOI18N
		jLabel18.setName("jLabel18"); // NOI18N

		jLabel58.setIcon(resourceMap.getIcon("jLabel58.icon"));
		jLabel58.setText(resourceMap.getString("jLabel58.text")); // NOI18N
		jLabel58.setName("jLabel58"); // NOI18N

		jLabel59.setIcon(resourceMap.getIcon("jLabel59.icon"));
		jLabel59.setText(resourceMap.getString("jLabel59.text")); // NOI18N
		jLabel59.setName("jLabel59"); // NOI18N

		javax.swing.GroupLayout jPanelRepresentacionFabricaLayout = new javax.swing.GroupLayout(
				jPanelRepresentacionFabrica);
		jPanelRepresentacionFabrica
				.setLayout(jPanelRepresentacionFabricaLayout);
		jPanelRepresentacionFabricaLayout
				.setHorizontalGroup(jPanelRepresentacionFabricaLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								javax.swing.GroupLayout.Alignment.TRAILING,
								jPanelRepresentacionFabricaLayout
										.createSequentialGroup()
										.addGap(72, 72, 72)
										.addGroup(
												jPanelRepresentacionFabricaLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.TRAILING)
														.addGroup(
																jPanelRepresentacionFabricaLayout
																		.createSequentialGroup()
																		.addGroup(
																				jPanelRepresentacionFabricaLayout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING)
																						.addComponent(
																								jLabel58)
																						.addComponent(
																								jLabel57))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jLabel3)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jLabel5))
														.addGroup(
																jPanelRepresentacionFabricaLayout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel17)
																		.addGap(231,
																				231,
																				231))
														.addGroup(
																jPanelRepresentacionFabricaLayout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel11,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				166,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jLabel_fig_Robot2))
														.addComponent(jLabel12))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addGroup(
												jPanelRepresentacionFabricaLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanelRepresentacionFabricaLayout
																		.createSequentialGroup()
																		.addComponent(
																				jLabel18)
																		.addContainerGap())
														.addGroup(
																jPanelRepresentacionFabricaLayout
																		.createParallelGroup(
																				javax.swing.GroupLayout.Alignment.LEADING)
																		.addGroup(
																				jPanelRepresentacionFabricaLayout
																						.createSequentialGroup()
																						.addGroup(
																								jPanelRepresentacionFabricaLayout
																										.createParallelGroup(
																												javax.swing.GroupLayout.Alignment.LEADING)
																										.addComponent(
																												jLabel6)
																										.addComponent(
																												jLabel7))
																						.addPreferredGap(
																								javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																						.addGroup(
																								jPanelRepresentacionFabricaLayout
																										.createParallelGroup(
																												javax.swing.GroupLayout.Alignment.LEADING)
																										.addComponent(
																												jLabel4,
																												javax.swing.GroupLayout.PREFERRED_SIZE,
																												180,
																												javax.swing.GroupLayout.PREFERRED_SIZE)
																										.addGroup(
																												jPanelRepresentacionFabricaLayout
																														.createSequentialGroup()
																														.addGap(70,
																																70,
																																70)
																														.addComponent(
																																jLabel13)))
																						.addPreferredGap(
																								javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																								javax.swing.GroupLayout.DEFAULT_SIZE,
																								Short.MAX_VALUE)
																						.addGroup(
																								jPanelRepresentacionFabricaLayout
																										.createParallelGroup(
																												javax.swing.GroupLayout.Alignment.LEADING)
																										.addComponent(
																												jLabel55)
																										.addGroup(
																												jPanelRepresentacionFabricaLayout
																														.createParallelGroup(
																																javax.swing.GroupLayout.Alignment.LEADING)
																														.addGroup(
																																javax.swing.GroupLayout.Alignment.TRAILING,
																																jPanelRepresentacionFabricaLayout
																																		.createSequentialGroup()
																																		.addGroup(
																																				jPanelRepresentacionFabricaLayout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.LEADING)
																																						.addComponent(
																																								jLabel2)
																																						.addComponent(
																																								jLabel_fig_Robot1,
																																								javax.swing.GroupLayout.Alignment.TRAILING)
																																						.addGroup(
																																								jPanelRepresentacionFabricaLayout
																																										.createSequentialGroup()
																																										.addComponent(
																																												jLabel59)
																																										.addPreferredGap(
																																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
																																		.addGroup(
																																				jPanelRepresentacionFabricaLayout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.LEADING,
																																								false)
																																						.addGroup(
																																								jPanelRepresentacionFabricaLayout
																																										.createSequentialGroup()
																																										.addPreferredGap(
																																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																																										.addGroup(
																																												jPanelRepresentacionFabricaLayout
																																														.createParallelGroup(
																																																javax.swing.GroupLayout.Alignment.TRAILING)
																																														.addComponent(
																																																jLabel8,
																																																javax.swing.GroupLayout.PREFERRED_SIZE,
																																																180,
																																																javax.swing.GroupLayout.PREFERRED_SIZE)
																																														.addComponent(
																																																jLabel9,
																																																javax.swing.GroupLayout.PREFERRED_SIZE,
																																																180,
																																																javax.swing.GroupLayout.PREFERRED_SIZE)))
																																						.addGroup(
																																								javax.swing.GroupLayout.Alignment.TRAILING,
																																								jPanelRepresentacionFabricaLayout
																																										.createSequentialGroup()
																																										.addPreferredGap(
																																												javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																																												javax.swing.GroupLayout.DEFAULT_SIZE,
																																												Short.MAX_VALUE)
																																										.addComponent(
																																												jLabel14)
																																										.addGap(79,
																																												79,
																																												79))))
																														.addGroup(
																																javax.swing.GroupLayout.Alignment.TRAILING,
																																jPanelRepresentacionFabricaLayout
																																		.createSequentialGroup()
																																		.addComponent(
																																				jLabel15)
																																		.addGap(70,
																																				70,
																																				70))))
																						.addGap(10,
																								10,
																								10))
																		.addGroup(
																				jPanelRepresentacionFabricaLayout
																						.createSequentialGroup()
																						.addComponent(
																								jLabel56)
																						.addContainerGap())))));
		jPanelRepresentacionFabricaLayout
				.setVerticalGroup(jPanelRepresentacionFabricaLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								jPanelRepresentacionFabricaLayout
										.createSequentialGroup()
										.addGroup(
												jPanelRepresentacionFabricaLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																jPanelRepresentacionFabricaLayout
																		.createSequentialGroup()
																		.addGap(86,
																				86,
																				86)
																		.addComponent(
																				jLabel14)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				jPanelRepresentacionFabricaLayout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING)
																						.addGroup(
																								jPanelRepresentacionFabricaLayout
																										.createSequentialGroup()
																										.addComponent(
																												jLabel9,
																												javax.swing.GroupLayout.PREFERRED_SIZE,
																												127,
																												javax.swing.GroupLayout.PREFERRED_SIZE)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jLabel8,
																												javax.swing.GroupLayout.PREFERRED_SIZE,
																												127,
																												javax.swing.GroupLayout.PREFERRED_SIZE))
																						.addGroup(
																								jPanelRepresentacionFabricaLayout
																										.createSequentialGroup()
																										.addComponent(
																												jLabel6,
																												javax.swing.GroupLayout.PREFERRED_SIZE,
																												127,
																												javax.swing.GroupLayout.PREFERRED_SIZE)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jLabel7,
																												javax.swing.GroupLayout.PREFERRED_SIZE,
																												127,
																												javax.swing.GroupLayout.PREFERRED_SIZE)))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED))
														.addGroup(
																jPanelRepresentacionFabricaLayout
																		.createSequentialGroup()
																		.addContainerGap()
																		.addGroup(
																				jPanelRepresentacionFabricaLayout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.TRAILING)
																						.addGroup(
																								jPanelRepresentacionFabricaLayout
																										.createSequentialGroup()
																										.addComponent(
																												jLabel56)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jLabel18)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																												136,
																												Short.MAX_VALUE)
																										.addComponent(
																												jLabel13)
																										.addGap(18,
																												18,
																												18)
																										.addComponent(
																												jLabel4,
																												javax.swing.GroupLayout.PREFERRED_SIZE,
																												127,
																												javax.swing.GroupLayout.PREFERRED_SIZE))
																						.addGroup(
																								jPanelRepresentacionFabricaLayout
																										.createSequentialGroup()
																										.addGroup(
																												jPanelRepresentacionFabricaLayout
																														.createParallelGroup(
																																javax.swing.GroupLayout.Alignment.TRAILING)
																														.addComponent(
																																jLabel59)
																														.addComponent(
																																jLabel55))
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jLabel2)
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addComponent(
																												jLabel_fig_Robot1))
																						.addGroup(
																								jPanelRepresentacionFabricaLayout
																										.createSequentialGroup()
																										.addGroup(
																												jPanelRepresentacionFabricaLayout
																														.createParallelGroup(
																																javax.swing.GroupLayout.Alignment.TRAILING)
																														.addComponent(
																																jLabel5,
																																javax.swing.GroupLayout.DEFAULT_SIZE,
																																javax.swing.GroupLayout.DEFAULT_SIZE,
																																Short.MAX_VALUE)
																														.addGroup(
																																jPanelRepresentacionFabricaLayout
																																		.createParallelGroup(
																																				javax.swing.GroupLayout.Alignment.LEADING)
																																		.addComponent(
																																				jLabel3,
																																				javax.swing.GroupLayout.PREFERRED_SIZE,
																																				67,
																																				javax.swing.GroupLayout.PREFERRED_SIZE)
																																		.addGroup(
																																				jPanelRepresentacionFabricaLayout
																																						.createParallelGroup(
																																								javax.swing.GroupLayout.Alignment.TRAILING)
																																						.addComponent(
																																								jLabel58)
																																						.addComponent(
																																								jLabel57))))
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																										.addGroup(
																												jPanelRepresentacionFabricaLayout
																														.createParallelGroup(
																																javax.swing.GroupLayout.Alignment.LEADING)
																														.addComponent(
																																jLabel11,
																																javax.swing.GroupLayout.DEFAULT_SIZE,
																																javax.swing.GroupLayout.DEFAULT_SIZE,
																																Short.MAX_VALUE)
																														.addComponent(
																																jLabel_fig_Robot2,
																																javax.swing.GroupLayout.DEFAULT_SIZE,
																																167,
																																Short.MAX_VALUE))))
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				Short.MAX_VALUE)
																		.addComponent(
																				jLabel17)
																		.addGap(26,
																				26,
																				26)))
										.addGroup(
												jPanelRepresentacionFabricaLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(jLabel12)
														.addComponent(jLabel15))
										.addContainerGap(35, Short.MAX_VALUE)));

		jLabel36.setIcon(resourceMap.getIcon("jLabel36.icon")); // NOI18N
		jLabel36.setText(resourceMap.getString("jLabel36.text")); // NOI18N
		jLabel36.setName("jLabel36"); // NOI18N

		javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(
				mainPanel);
		mainPanel.setLayout(mainPanelLayout);
		mainPanelLayout
				.setHorizontalGroup(mainPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								mainPanelLayout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												mainPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addComponent(
																jTabbedPane1,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																1145,
																javax.swing.GroupLayout.PREFERRED_SIZE)
														.addGroup(
																mainPanelLayout
																		.createSequentialGroup()
																		.addComponent(
																				jPanelRepresentacionFabrica,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addGroup(
																				mainPanelLayout
																						.createParallelGroup(
																								javax.swing.GroupLayout.Alignment.LEADING)
																						.addGroup(
																								mainPanelLayout
																										.createSequentialGroup()
																										.addPreferredGap(
																												javax.swing.LayoutStyle.ComponentPlacement.RELATED,
																												2,
																												Short.MAX_VALUE)
																										.addGroup(
																												mainPanelLayout
																														.createParallelGroup(
																																javax.swing.GroupLayout.Alignment.TRAILING)
																														.addComponent(
																																jPanelEstadoCadenaMontaje,
																																javax.swing.GroupLayout.PREFERRED_SIZE,
																																253,
																																javax.swing.GroupLayout.PREFERRED_SIZE)
																														.addComponent(
																																jPanelControlCadenaMontaje,
																																javax.swing.GroupLayout.PREFERRED_SIZE,
																																javax.swing.GroupLayout.DEFAULT_SIZE,
																																javax.swing.GroupLayout.PREFERRED_SIZE))
																										.addGap(16,
																												16,
																												16))
																						.addComponent(
																								jLabel36,
																								javax.swing.GroupLayout.PREFERRED_SIZE,
																								201,
																								javax.swing.GroupLayout.PREFERRED_SIZE))))
										.addGap(30, 30, 30)));
		mainPanelLayout
				.setVerticalGroup(mainPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								mainPanelLayout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												mainPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.LEADING)
														.addGroup(
																mainPanelLayout
																		.createSequentialGroup()
																		.addComponent(
																				jPanelEstadoCadenaMontaje,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jPanelControlCadenaMontaje,
																				javax.swing.GroupLayout.PREFERRED_SIZE,
																				javax.swing.GroupLayout.DEFAULT_SIZE,
																				javax.swing.GroupLayout.PREFERRED_SIZE)
																		.addPreferredGap(
																				javax.swing.LayoutStyle.ComponentPlacement.RELATED)
																		.addComponent(
																				jLabel36,
																				0,
																				0,
																				Short.MAX_VALUE))
														.addComponent(
																jPanelRepresentacionFabrica,
																javax.swing.GroupLayout.Alignment.TRAILING,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																468,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(
												jTabbedPane1,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												301,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addGap(1, 1, 1)));

		menuBar.setName("menuBar"); // NOI18N

		fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
		fileMenu.setName("fileMenu"); // NOI18N

		javax.swing.ActionMap actionMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getActionMap(GLOBEXView.class, this);
		exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
		exitMenuItem.setName("exitMenuItem"); // NOI18N
		fileMenu.add(exitMenuItem);

		menuBar.add(fileMenu);

		helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
		helpMenu.setName("helpMenu"); // NOI18N

		aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
		aboutMenuItem.setName("aboutMenuItem"); // NOI18N
		helpMenu.add(aboutMenuItem);

		menuBar.add(helpMenu);

		statusPanel.setName("statusPanel"); // NOI18N

		statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N

		statusMessageLabel.setName("statusMessageLabel"); // NOI18N

		statusAnimationLabel
				.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
		statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N

		progressBar.setName("progressBar"); // NOI18N

		javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(
				statusPanel);
		statusPanel.setLayout(statusPanelLayout);
		statusPanelLayout
				.setHorizontalGroup(statusPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addComponent(statusPanelSeparator,
								javax.swing.GroupLayout.DEFAULT_SIZE, 1201,
								Short.MAX_VALUE)
						.addGroup(
								statusPanelLayout
										.createSequentialGroup()
										.addContainerGap()
										.addComponent(statusMessageLabel)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED,
												1031, Short.MAX_VALUE)
										.addComponent(
												progressBar,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED)
										.addComponent(statusAnimationLabel)
										.addContainerGap()));
		statusPanelLayout
				.setVerticalGroup(statusPanelLayout
						.createParallelGroup(
								javax.swing.GroupLayout.Alignment.LEADING)
						.addGroup(
								statusPanelLayout
										.createSequentialGroup()
										.addComponent(
												statusPanelSeparator,
												javax.swing.GroupLayout.PREFERRED_SIZE,
												2,
												javax.swing.GroupLayout.PREFERRED_SIZE)
										.addPreferredGap(
												javax.swing.LayoutStyle.ComponentPlacement.RELATED,
												javax.swing.GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)
										.addGroup(
												statusPanelLayout
														.createParallelGroup(
																javax.swing.GroupLayout.Alignment.BASELINE)
														.addComponent(
																statusMessageLabel)
														.addComponent(
																statusAnimationLabel)
														.addComponent(
																progressBar,
																javax.swing.GroupLayout.PREFERRED_SIZE,
																javax.swing.GroupLayout.DEFAULT_SIZE,
																javax.swing.GroupLayout.PREFERRED_SIZE))
										.addGap(3, 3, 3)));

		setComponent(mainPanel);
		setMenuBar(menuBar);
		setStatusBar(statusPanel);
	}// </editor-fold>//GEN-END:initComponents

	private void btnStartMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_btnStartMouseClicked
		// TODO add your handling code here:
		System.out.println("Start presionado");
		// System.out.println("Longitud Cinta Engranajes="
		// + getValueLongitudCintaEngranajes());
		// Modifica los parametros configurables por si estos han sido
		// modificados tras parar y arrancar de nuevo la aplicacion
		actualizarBBDDParametrosConfiguracion();
		incrementarContadorArranques();
		Maestro.parada(MessageTypes.START);
	}// GEN-LAST:event_btnStartMouseClicked

	private void btnStopMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_btnStopMouseClicked
		// TODO add your handling code here:
		System.out.println("Stop presionado");
		incrementarContadorParadasNormales();
		Maestro.parada(MessageTypes.STOP);
	}// GEN-LAST:event_btnStopMouseClicked

	private void btnEmergencyStopMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_btnEmergencyStopMouseClicked
		// TODO add your handling code here:
		System.out.println("Emergency Stop presionado");
		incrementarContadorParadasEmergencia();
		Maestro.parada(MessageTypes.EMERGENCY_STOP);
	}// GEN-LAST:event_btnEmergencyStopMouseClicked

	private void btnInformeTandaMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_btnInformeTandaClicked
		// TODO add your handling code here:
		System.out.println("Informe tanda presionado");
		VentanaSesion ventanaSesion = new VentanaSesion();
	}// GEN-LAST:event_btnInformeTandaClicked

	private void btnInformeTotalMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_btnInformeTotalMouseClicked
		// TODO add your handling code here:
		System.out.println("Informe total presionado");
		VentanaTotal ventanaTotal = new VentanaTotal();
	}// GEN-LAST:event_btnInformeTotalMouseClicked

	private void btnInformeArranquesMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_btnInformeArranquesMouseClicked
		// TODO add your handling code here:
		System.out.println("Informe arranques presionado");
		VentanaParadas ventanaParadas = new VentanaParadas();
	}// GEN-LAST:event_btnInformeArranquesMouseClicked

	// Variables declaration - do not modify//GEN-BEGIN:variables
	private javax.swing.JSpinner boxErroresSoldadura;
	private javax.swing.JSpinner boxVelocidadSimulacion;
	private javax.swing.JButton btnEmergencyStop;
	private javax.swing.JButton btnStart;
	private javax.swing.JButton btnStop;
	private javax.swing.ButtonGroup buttonGroupAutomata1;
	private javax.swing.ButtonGroup buttonGroupAutomata2;
	private javax.swing.ButtonGroup buttonGroupAutomata3;
	private javax.swing.JButton jButton1;
	private javax.swing.JButton jButton2;
	private javax.swing.JButton jButton3;
	private javax.swing.JLabel jLabel11;
	private javax.swing.JLabel jLabel12;
	private javax.swing.JLabel jLabel13;
	private javax.swing.JLabel jLabel14;
	private javax.swing.JLabel jLabel15;
	private javax.swing.JLabel jLabel16;
	private javax.swing.JLabel jLabel17;
	private javax.swing.JLabel jLabel18;
	private javax.swing.JLabel jLabel19;
	private javax.swing.JLabel jLabel2;
	private javax.swing.JLabel jLabel20;
	private javax.swing.JLabel jLabel21;
	private javax.swing.JLabel jLabel22;
	private javax.swing.JLabel jLabel23;
	private javax.swing.JLabel jLabel24;
	private javax.swing.JLabel jLabel25;
	private javax.swing.JLabel jLabel26;
	private javax.swing.JLabel jLabel27;
	private javax.swing.JLabel jLabel28;
	private javax.swing.JLabel jLabel29;
	private javax.swing.JLabel jLabel3;
	private javax.swing.JLabel jLabel30;
	private javax.swing.JLabel jLabel31;
	private javax.swing.JLabel jLabel32;
	private javax.swing.JLabel jLabel33;
	private javax.swing.JLabel jLabel34;
	private javax.swing.JLabel jLabel35;
	private javax.swing.JLabel jLabel36;
	private javax.swing.JLabel jLabel37;
	private javax.swing.JLabel jLabel38;
	private javax.swing.JLabel jLabel39;
	private javax.swing.JLabel jLabel4;
	private javax.swing.JLabel jLabel40;
	private javax.swing.JLabel jLabel41;
	private javax.swing.JLabel jLabel42;
	private javax.swing.JLabel jLabel43;
	private javax.swing.JLabel jLabel44;
	private javax.swing.JLabel jLabel45;
	private javax.swing.JLabel jLabel46;
	private javax.swing.JLabel jLabel47;
	private javax.swing.JLabel jLabel48;
	private javax.swing.JLabel jLabel49;
	private javax.swing.JLabel jLabel5;
	private javax.swing.JLabel jLabel50;
	private javax.swing.JLabel jLabel51;
	private javax.swing.JLabel jLabel52;
	private javax.swing.JLabel jLabel53;
	private javax.swing.JLabel jLabel54;
	private javax.swing.JLabel jLabel55;
	private javax.swing.JLabel jLabel56;
	private javax.swing.JLabel jLabel57;
	private javax.swing.JLabel jLabel58;
	private javax.swing.JLabel jLabel59;
	private javax.swing.JLabel jLabel6;
	private javax.swing.JLabel jLabel7;
	private javax.swing.JLabel jLabel8;
	private javax.swing.JLabel jLabel9;
	private javax.swing.JLabel jLabelAutomata1;
	private javax.swing.JLabel jLabelAutomata2;
	private javax.swing.JLabel jLabelAutomata3;
	private javax.swing.JLabel jLabelAutomataMaestro;
	private javax.swing.JLabel jLabelRobot1;
	private javax.swing.JLabel jLabelRobot2;
	private javax.swing.JLabel jLabel_fig_Robot1;
	private javax.swing.JLabel jLabel_fig_Robot2;
	private javax.swing.JPanel jPanel19;
	private javax.swing.JPanel jPanel20;
	private javax.swing.JPanel jPanel7;
	private javax.swing.JPanel jPanelAutomata1;
	private javax.swing.JPanel jPanelAutomata2;
	private javax.swing.JPanel jPanelAutomata3;
	private javax.swing.JPanel jPanelConfiguracion;
	private javax.swing.JPanel jPanelControlCadenaMontaje;
	private javax.swing.JPanel jPanelDebug;
	private javax.swing.JPanel jPanelEstadoCadenaMontaje;
	private javax.swing.JPanel jPanelInformes;
	private javax.swing.JPanel jPanelRepresentacionFabrica;
	private javax.swing.JPanel jPanelRobot1;
	private javax.swing.JPanel jPanelRobot2;
	private javax.swing.JPanel jPanelSimulacion;
	private javax.swing.JScrollPane jScrollPane1;
	private javax.swing.JSeparator jSeparator1;
	private javax.swing.JSeparator jSeparator2;
	private javax.swing.JSeparator jSeparator3;
	private javax.swing.JSpinner jSpinnerCapacidadEjes;
	private javax.swing.JSpinner jSpinnerCapacidadEngranajes;
	private javax.swing.JSpinner jSpinnerLongitudCintaEjes;
	private javax.swing.JSpinner jSpinnerLongitudCintaEngranajes;
	private javax.swing.JSpinner jSpinnerLongitudCintaOk;
	private javax.swing.JSpinner jSpinnerLongitudCintaRechazos;
	private javax.swing.JSpinner jSpinnerLongitudCintaTransferencia;
	private javax.swing.JSpinner jSpinnerTiempoActivacionEstacionControl;
	private javax.swing.JSpinner jSpinnerTiempoActivacionEstacionMontaje;
	private javax.swing.JSpinner jSpinnerTiempoActivacionEstacionSoldadura;
	private javax.swing.JSpinner jSpinnerTiempoRecogidaConjuntoMontado;
	private javax.swing.JSpinner jSpinnerTiempoRecogidaTuercas;
	private javax.swing.JSpinner jSpinnerTiempoTransporteColocacionConjuntoMojado_robot1;
	private javax.swing.JSpinner jSpinnerTiempoTransporteColocacionConjuntoMontado_robot2;
	private javax.swing.JSpinner jSpinnerTiempoTransporteColocacionConjuntoSoldado;
	private javax.swing.JSpinner jSpinnerTiempoTransporteColocacionEngranajeEje;
	private javax.swing.JSpinner jSpinnerVelocidadCintaEjes;
	private javax.swing.JSpinner jSpinnerVelocidadCintaEngranajes;
	private javax.swing.JSpinner jSpinnerVelocidadCintaOk;
	private javax.swing.JSpinner jSpinnerVelocidadCintaTransferencia;
	private javax.swing.JTabbedPane jTabbedPane1;
	private javax.swing.JTextArea jTextAreaLogConsole;
	private javax.swing.JPanel mainPanel;
	private javax.swing.JMenuBar menuBar;
	private javax.swing.JPanel panelUltimatanda;
	private javax.swing.JProgressBar progressBar;
	private javax.swing.JLabel statusAnimationLabel;
	private javax.swing.JLabel statusMessageLabel;
	private javax.swing.JPanel statusPanel;
	// End of variables declaration//GEN-END:variables

	private final Timer messageTimer;
	private final Timer busyIconTimer;
	private final Icon idleIcon;
	private final Icon[] busyIcons = new Icon[15];
	private int busyIconIndex = 0;

	private JDialog aboutBox;

	// private PieChartPainter tartaUltimatanda;

	public int getValueCapacidadEjes() {

		return ((Integer) jSpinnerCapacidadEjes.getValue()).intValue();
	}

	public void setValueCapacidadEjes(int valor) {

		jSpinnerCapacidadEjes.setValue(valor);
	}

	public int getValueCapacidadEngranajes() {

		return ((Integer) jSpinnerCapacidadEngranajes.getValue()).intValue();
	}

	public void setValueCapacidadEngranajes(int valor) {

		jSpinnerCapacidadEngranajes.setValue(valor);
	}

	public int getValueLongitudCintaEjes() {

		return ((Integer) jSpinnerLongitudCintaEjes.getValue()).intValue();
	}

	public void setValueLongitudCintaEjes(int valor) {

		jSpinnerLongitudCintaEjes.setValue(valor);
	}

	public int getValueLongitudCintaEngranajes() {

		return ((Integer) jSpinnerLongitudCintaEngranajes.getValue())
				.intValue();
	}

	public void setValueLongitudCintaEngranajes(int valor) {

		jSpinnerLongitudCintaEngranajes.setValue(valor);
	}

	public int getValueLongitudCintaOk() {

		return ((Integer) jSpinnerLongitudCintaOk.getValue()).intValue();
	}

	public void setValueLongitudCintaOk(int valor) {

		jSpinnerLongitudCintaOk.setValue(valor);
	}

	public int getValueLongitudCintaRechazos() {

		return ((Integer) jSpinnerLongitudCintaRechazos.getValue()).intValue();
	}

	public void setValueLongitudCintaRechazos(int valor) {

		jSpinnerLongitudCintaRechazos.setValue(valor);
	}

	public int getValueLongitudCintaTransferencia() {

		return ((Integer) jSpinnerLongitudCintaTransferencia.getValue())
				.intValue();
	}

	public void setValueLongitudCintaTransferencia(int valor) {

		jSpinnerLongitudCintaTransferencia.setValue(valor);
	}

	public int getValueTiempoActivacionEstacionControl() {

		return ((Integer) jSpinnerTiempoActivacionEstacionControl.getValue())
				.intValue();
	}

	public void setValueTiempoActivacionEstacionControl(int valor) {

		jSpinnerTiempoActivacionEstacionControl.setValue(valor);
	}

	public int getValueTiempoActivacionEstacionMontaje() {

		return ((Integer) jSpinnerTiempoActivacionEstacionMontaje.getValue())
				.intValue();
	}

	public void setValueTiempoActivacionEstacionMontaje(int valor) {

		jSpinnerTiempoActivacionEstacionMontaje.setValue(valor);
	}

	public int getValueTiempoActivacionEstacionSoldadura() {

		return ((Integer) jSpinnerTiempoActivacionEstacionSoldadura.getValue())
				.intValue();
	}

	public void setValueTiempoActivacionEstacionSoldadura(int valor) {

		jSpinnerTiempoActivacionEstacionSoldadura.setValue(valor);
	}

	public int getValueTiempoRecogidaConjuntoMontado() {

		return ((Integer) jSpinnerTiempoRecogidaConjuntoMontado.getValue())
				.intValue();
	}

	public void setValueTiempoRecogidaConjuntoMontado(int valor) {

		jSpinnerTiempoRecogidaConjuntoMontado.setValue(valor);
	}

	public int getValueTiempoRecogidaTuercas() {

		return ((Integer) jSpinnerTiempoRecogidaTuercas.getValue()).intValue();
	}

	public void setValueTiempoRecogidaTuercas(int valor) {

		jSpinnerTiempoRecogidaTuercas.setValue(valor);
	}

	public int getValueTiempoTransporteColocacionConjuntoMontado_robot1() {

		return ((Integer) jSpinnerTiempoTransporteColocacionConjuntoMojado_robot1
				.getValue()).intValue();
	}

	public void setValueTiempoTransporteColocacionConjuntoMontado_robot1(
			int valor) {

		jSpinnerTiempoTransporteColocacionConjuntoMojado_robot1.setValue(valor);
	}

	public int getValueTiempoTransporteColocacionConjuntoMontado_robot2() {

		return ((Integer) jSpinnerTiempoTransporteColocacionConjuntoMontado_robot2
				.getValue()).intValue();
	}

	public void setValueTiempoTransporteColocacionConjuntoMontado_robot2(
			int valor) {

		jSpinnerTiempoTransporteColocacionConjuntoMontado_robot2
				.setValue(valor);
	}

	public int getValueTiempoTransporteColocacionConjuntoSoldado() {

		return ((Integer) jSpinnerTiempoTransporteColocacionConjuntoSoldado
				.getValue()).intValue();
	}

	public void setValueTiempoTransporteColocacionConjuntoSoldado(int valor) {

		jSpinnerTiempoTransporteColocacionConjuntoSoldado.setValue(valor);
	}

	public int getValueTiempoTransporteColocacionEngranajeEje() {

		return ((Integer) jSpinnerTiempoTransporteColocacionEngranajeEje
				.getValue()).intValue();
	}

	public void setValueTiempoTransporteColocacionEngranajeEje(int valor) {

		jSpinnerTiempoTransporteColocacionEngranajeEje.setValue(valor);
	}

	public int getValueVelocidadCintaEjes() {

		return ((Integer) jSpinnerVelocidadCintaEjes.getValue()).intValue();
	}

	public void setValueVelocidadCintaEjes(int valor) {

		jSpinnerVelocidadCintaEjes.setValue(valor);
	}

	public int getValueVelocidadCintaEngranajes() {

		return ((Integer) jSpinnerVelocidadCintaEngranajes.getValue())
				.intValue();
	}

	public void setValueVelocidadCintaEngranajes(int valor) {

		jSpinnerVelocidadCintaEngranajes.setValue(valor);
	}

	public int getValueVelocidadCintaOk() {

		return ((Integer) jSpinnerVelocidadCintaOk.getValue()).intValue();
	}

	public void setValueVelocidadCintaOk(int valor) {

		jSpinnerVelocidadCintaOk.setValue(valor);
	}

	public int getValueVelocidadCintaTransferencia() {

		return ((Integer) jSpinnerVelocidadCintaTransferencia.getValue())
				.intValue();
	}

	public void setValueVelocidadCintaTransferencia(int valor) {

		jSpinnerVelocidadCintaTransferencia.setValue(valor);
	}

	public int getValueCicloReloj() {

		return ((Integer) boxVelocidadSimulacion.getValue()).intValue();
	}

	public void setValueCicloReloj(int valor) {

		boxVelocidadSimulacion.setValue(valor);
	}

	public int getValueUmbralError() {

		return ((Integer) boxErroresSoldadura.getValue()).intValue();
	}

	public void setValueUmbralError(int valor) {

		boxErroresSoldadura.setValue(valor);
	}

	public void actualizarBBDDParametrosConfiguracion() {
		Configuracion.setCicloReloj(getValueCicloReloj());
		Configuracion.setLongitudEjes(getValueLongitudCintaEjes());
		Configuracion.setVelocidadEjes(getValueVelocidadCintaEjes());
		Configuracion.setLongitudEngranajes(getValueLongitudCintaEngranajes());
		Configuracion
				.setVelocidadEngranajes(getValueVelocidadCintaEngranajes());
		Configuracion.setCapacidadEjes(getValueCapacidadEjes());
		Configuracion.setCapacidadEngranajes(getValueCapacidadEngranajes());
		Configuracion
				.setTiempoMontaje(getValueTiempoActivacionEstacionMontaje());
		Configuracion
				.setLongitudTransferencia(getValueLongitudCintaTransferencia());
		Configuracion
				.setVelocidadtransferencia(getValueVelocidadCintaTransferencia());
		Configuracion
				.setTiempoSoldado(getValueTiempoActivacionEstacionSoldadura());
		Configuracion
				.setTiempoControl(getValueTiempoActivacionEstacionControl());
		Configuracion.setLongitudCintaOk(getValueLongitudCintaOk());
		Configuracion.setVelocidadCintaOk(getValueVelocidadCintaOk());
		Configuracion.setUmbralError((0.0f + getValueUmbralError()) / 100.0f);
		Configuracion.setTiempoRecEje(getValueTiempoRecogidaTuercas());
		Configuracion.setTiempoRecEng(getValueTiempoRecogidaTuercas());
		Configuracion
				.setTiempoTransEje(getValueTiempoTransporteColocacionEngranajeEje());
		Configuracion
				.setTiempoTransEng(getValueTiempoTransporteColocacionEngranajeEje());
		Configuracion
				.setTiempoTransConj(getValueTiempoTransporteColocacionConjuntoMontado_robot1());
		Configuracion
				.setTiempoRecMontado(getValueTiempoRecogidaConjuntoMontado());
		Configuracion
				.setTiempoTransMontado(getValueTiempoTransporteColocacionConjuntoMontado_robot2());
		Configuracion
				.setTiempoTransSoldado(getValueTiempoTransporteColocacionConjuntoSoldado());

		// Descomentar si se quieren guardar en la BD los nuevos parametros
		// definidos en la interfaz
		Configuracion.guardar();
	}

	public void actualizarSCADAParametrosConfiguracion() {
		setValueCicloReloj(Configuracion.getCicloReloj());
		setValueLongitudCintaEjes(Configuracion.getLongitudEjes());
		setValueVelocidadCintaEjes(Configuracion.getVelocidadEjes());
		setValueLongitudCintaEngranajes(Configuracion.getLongitudEngranajes());
		setValueVelocidadCintaEngranajes(Configuracion.getVelocidadEngranajes());
		setValueCapacidadEjes(Configuracion.getCapacidadEjes());
		setValueCapacidadEngranajes(Configuracion.getCapacidadEngranajes());
		setValueTiempoActivacionEstacionMontaje(Configuracion
				.getTiempoMontaje());
		setValueLongitudCintaTransferencia(Configuracion
				.getLongitudTransferencia());
		setValueVelocidadCintaTransferencia(Configuracion
				.getVelocidadtransferencia());
		setValueTiempoActivacionEstacionSoldadura(Configuracion
				.getTiempoSoldado());
		setValueTiempoActivacionEstacionControl(Configuracion
				.getTiempoControl());
		setValueLongitudCintaOk(Configuracion.getLongitudCintaOk());
		setValueVelocidadCintaOk(Configuracion.getVelocidadCintaOk());
		setValueUmbralError((int) (Configuracion.getUmbralError() * 100));
		setValueTiempoRecogidaTuercas(Configuracion.getTiempoRecEje());
		setValueTiempoTransporteColocacionEngranajeEje(Configuracion
				.getTiempoTransEje());
		setValueTiempoTransporteColocacionConjuntoMontado_robot1(Configuracion
				.getTiempoTransConj());
		setValueTiempoRecogidaConjuntoMontado(Configuracion
				.getTiempoRecMontado());
		setValueTiempoTransporteColocacionConjuntoMontado_robot2(Configuracion
				.getTiempoTransMontado());
		setValueTiempoTransporteColocacionConjuntoSoldado(Configuracion
				.getTiempoTransSoldado());

		jTextAreaLogConsole.setText(jTextAreaLogConsole.getText()
				+ "\nCargando configuraci\u00f3n de la BBDD...\t\t[OK]");
	}

	/************************** METODOS PARA GESTIONAR EL HASHMAP CON LOS ESTADOS DE LOS 3 AUTOMATAS *********************/

	/**
	 * Metodo que procesa el hashmap de estados del automata 1 y dependiendo del
	 * tipo de estado a tratar realiza unas operaciones sobre el.
	 * 
	 * @param estadoAut1
	 *            contiene los estados que hay que modificar
	 */
	public void modificarEstadoAutomata1(HashMap<String, String> estadoAut1) {

		for (String key : estadoAut1.keySet()) {
			if (key.equals("estadoCintaEjes"))
				modificarCintaEjes(Integer.parseInt(estadoAut1.get(key)));
			else if (key.equals("estadoCintaEngranajes"))
				modificarCintaEngranajes(Integer.parseInt(estadoAut1.get(key)));
			else if (key.equals("ejesEnCinta"))
				modificarEjesCintaEjes(Integer.parseInt(estadoAut1.get(key)));
			else if (key.equals("engranajesEnCinta"))
				modificarEngranajesCintaEngranajes(Integer.parseInt(estadoAut1
						.get(key)));
			else
				System.out.println("MOSTRAR INTERFAZ DE ERROR AUT1...");
		}
	}

	/**
	 * Metodo que procesa el hashmap de estados del automata 2 y dependiendo del
	 * tipo de estado a tratar realiza unas operaciones sobre el.
	 * 
	 * @param estadoAut2
	 *            contiene los estados que hay que modificar
	 */
	public void modificarEstadoAutomata2(HashMap<String, String> estadoAut2) {

		for (String key : estadoAut2.keySet()) {
			if (key.equals("estadoCintaTransferencia"))
				modificarCintaTransferencia(Integer.parseInt(estadoAut2
						.get(key)));
			else if (key.equals("conjuntosEnCinta"))
				modificarConjuntosCintaTransferencia(Integer
						.parseInt(estadoAut2.get(key)));
			else
				System.out.println("MOSTRAR INTERFAZ DE ERROR AUT2...");
		}
	}

	/**
	 * Metodo que procesa el hashmap de estados del automata 3 y dependiendo del
	 * tipo de estado a tratar realiza unas operaciones sobre el.
	 * 
	 * @param estadoAut3
	 *            contiene los estados que hay que modificar
	 */
	public void modificarEstadoAutomata3(HashMap<String, String> estadoAut3) {

		for (String key : estadoAut3.keySet()) {
			if (key.equals("estadoEstacionInspeccion"))
				modificarEstacionInspeccion(Integer.parseInt(estadoAut3
						.get(key)));
			else if (key.equals("estadoCintaSalida"))
				modificarCintaSalida(Integer.parseInt(estadoAut3.get(key)));
			else if (key.equals("conjuntosAceptados"))
				modificarConjuntosAceptados(Integer.parseInt(estadoAut3
						.get(key)));
			else if (key.equals("conjuntosRechazados"))
				modificarConjuntosRechazados(Integer.parseInt(estadoAut3
						.get(key)));
			else if (key.equals("conjuntosCintaSalida"))
				modificarConjuntosCintaSalida(Integer.parseInt(estadoAut3
						.get(key)));
			else
				System.out.println("MOSTRAR INTERFAZ DE ERROR AUT3...");
		}
	}

	/********************************************************** AUTOMATA 1 *******************************************************************************/

	/**
	 * Cambia la figura que se muestra en la etiqueta de la cinta de ejes
	 * 
	 * @param estadoActualCintaEjes
	 *            toma un valor de entre los posibles estados en los que puede
	 *            estar la cinta de ejes
	 */
	public boolean _eje1 = true;
	public void modificarCintaEjes(int estadoActualCintaEjes) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		switch (estadoActualCintaEjes) {

		case 1:// cinta con un solo eje
				// modificarLuzAut1(2);
				// DEBUG?
			System.out.println("A la cinta de ejes le llega un eje");
			
			
			jLabel9.setIcon(resourceMap.getIcon("jLabel9_Eje.icon"));
			//jLabel14.setIcon(resourceMap.getIcon("puntoVerde"));
			break;
		case 2:// ejes moviendose por la cinta de ejes
				// DEBUG?
			System.out.println("Ejes avanzan por la cinta");
			/*jLabel9.setIcon(resourceMap.getIcon("jLabel9_EjesMoviendose.icon"));
			jLabel9.setIcon(resourceMap.getIcon("jLabel9_EjePosFinal.icon"));*/
			if(_eje1) {
				jLabel9.setIcon(resourceMap.getIcon("jLabel9_Eje.icon"));
				_eje1 = false;
			} else {
				jLabel9.setIcon(resourceMap.getIcon("jLabel9_EjesMoviendose.icon"));
				_eje1 = true;
			}
			jLabel14.setIcon(resourceMap.getIcon("puntoVerde"));
			break;
		case 3:// eje en posicion final de la cinta
				// DEBUG?
			System.out.println("Eje listo para ser recogido por el robot 1");
			jLabel9.setIcon(resourceMap.getIcon("jLabel9_EjePosFinal.icon"));
			jLabel14.setIcon(resourceMap.getIcon("puntoRojo"));
			//jTextAreaLogConsole.setText(jTextAreaLogConsole.getText()+"\n\t\tCinta Ejes detenida");
			break;
		}
	}

	/**
	 * Cambia la figura que se muestra en la etiqueta de la cinta de engranajes
	 * 
	 * @param estadoActualCintaEngranajes
	 *            toma un valor de entre los posibles estados en los que puede
	 *            estar la cinta de engranajes
	 */
	boolean _engranaje1 = true;
	public void modificarCintaEngranajes(int estadoActualCintaEngranajes) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		switch (estadoActualCintaEngranajes) {

		case 1:// cinta con un solo engranaje
				// modificarLuzAut1(2);
				// DEBUG?
			System.out
					.println("A la cinta de engranajes le llega un engranaje");
			jLabel8.setIcon(resourceMap.getIcon("jLabel8_Engranaje.icon"));
			//jLabel15.setIcon(resourceMap.getIcon("puntoVerde"));
			break;
		case 2:// engranajes moviendose por la cinta de engranajes
				// DEBUG?
			System.out.println("Engranajes avanzan por la cinta");
			if(_engranaje1) {
				jLabel8.setIcon(resourceMap.getIcon("jLabel8_EngranajesMoviendose.icon"));
				_engranaje1 = false;
			} else {
				jLabel8.setIcon(resourceMap.getIcon("jLabel8_EngranajePosFinal.icon"));
				_engranaje1 = true;
			}
			jLabel15.setIcon(resourceMap.getIcon("puntoVerde"));
			break;
		case 3:// engranaje en posicion final de la cinta
				// DEBUG?
			System.out
					.println("Engranaje listo para ser recogido por el robot 1");
			jLabel8.setIcon(resourceMap
					.getIcon("jLabel8_EngranajePosFinal.icon"));
			jLabel15.setIcon(resourceMap.getIcon("puntoRojo"));
			break;
		}
	}

	/**
	 * Cambia la figura que se muestra en la etiqueta de la estacion de montaje
	 * 
	 * @param estadoActualEstacionMontaje
	 *            toma un valor de entre los posibles estados en los que puede
	 *            estar la estacion de montaje
	 */
	public void modificarEstacionMontaje(MessageTypes estadoActualEstacionMontaje) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		switch (estadoActualEstacionMontaje) {

		case COMIENZO_MONTAJE:// la estacion de montaje recibe un eje y un
								// engranaje
			// DEBUG?
			System.out.println("Llega un eje y un engranaje a la Estacion de montaje");
			jLabel2.setIcon(resourceMap.getIcon("jLabel2_EjeEngranaje.icon"));
			jLabel59.setIcon(resourceMap.getIcon("puntoVerde"));
			break;
		case FIN_MONTAJE:// la estacion de montaje genera el conjunto montado
			// DEBUG?
			System.out.println("El conjunto esta montado");
			jLabel2.setIcon(resourceMap.getIcon("jLabel2_ConjMontado.icon"));
			jLabel59.setIcon(resourceMap.getIcon("puntoRojo"));
			break;
			
		case EXIT:// Se ha retirado elemento de la estacion de montaje
			System.out.println("El conjunto se ha retirado");
			jLabel2.setIcon(resourceMap.getIcon("jLabel2.icon"));
			jLabel59.setIcon(resourceMap.getIcon("puntoRojo"));
			break;
			
		}
	}

	/**
	 * Cambia la figura que se muestra en la etiqueta del robot 1
	 * 
	 * @param estadoActualRobot1
	 *            toma un valor de entre los posibles estados del enumerado en
	 *            los que puede estar el robot 1
	 */
	public void modificarRobot1(MessageTypes estadoActualRobot1) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		switch (estadoActualRobot1) {

		case COMIENZO_ROBOT1_TRASLADO_EJE_ENGRANAJE:// el robot 1 esta cogiendo
													// y trasladando un eje y un
													// engranaje
			// modificarLuzAut1(2);
			// DEBUG?
			System.out.println("Robot 1 cogiendo y trasladando eje y engranaje");
			jLabel_fig_Robot1.setIcon(resourceMap.getIcon("jLabel_fig_Robot1_Espera.icon"));
			jLabel_fig_Robot1.setIcon(resourceMap.getIcon("jLabel_fig_Robot1_Espera2.icon"));
			jLabel14.setIcon(resourceMap.getIcon("puntoVerde"));
			jLabel15.setIcon(resourceMap.getIcon("puntoVerde"));
			break;
		case FIN_ROBOT1_TRASLADO_EJE_ENGRANAJE:// el robot 1 termina de
												// trasladar un eje y un
												// engranaje
			// DEBUG?
			System.out.println("Robot 1 termina trasladar eje y engranaje");
			//jLabel_fig_Robot1.setIcon(resourceMap.getIcon("jLabel_fig_Robot1_EjeEng.icon"));
			jLabel_fig_Robot1.setIcon(resourceMap.getIcon("jLabel_fig_Robot1.icon"));
			break;
		case COMIENZO_ROBOT1_TRASLADO_CONJUNTO:// el robot 1 recoge un conjunto
												// montado
			// DEBUG?
			System.out.println("Robot 1 recoge y traslada conjunto montado");
			jLabel_fig_Robot1.setIcon(resourceMap.getIcon("jLabel_fig_Robot1_ConjMontado.icon"));
			//this.modificarEstacionMontaje(MessageTypes.EXIT);
			break;
		}
	}

	/**
	 * Cambia el valor del numero de ejes que se encuentran en la cinta de ejes
	 */
	public void modificarEjesCintaEjes(int posicionesEjes) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		// DEBUG?
		System.out.println("Numero de ejes de la cinta de ejes: "
				+ posicionesEjes);
		jLabel14.setText("" + posicionesEjes);
	}

	/**
	 * Cambia el valor del numero de engranajes que se encuentran en la cinta de
	 * engranajes
	 */
	public void modificarEngranajesCintaEngranajes(int posicionesEngranajes) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		// DEBUG?
		System.out.println("Numero de engranajes de la cinta de engranajes: "
				+ posicionesEngranajes);
		jLabel15.setText("" + posicionesEngranajes);
	}

	/************************************************************ AUTOMATA 2 *******************************************************************************/

	/**
	 * Cambia la figura que se muestra en la etiqueta de la cinta de
	 * transferencia
	 * 
	 * @param estadoActualCintaTransferencia
	 *            toma un valor de entre los posibles estados en los que puede
	 *            estar la cinta de transferencia
	 */
	private boolean _trans = true;
	public void modificarCintaTransferencia(int estadoActualCintaTransferencia) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		switch (estadoActualCintaTransferencia) {

		case 1:// cinta con un solo conjunto montado
				// modificarLuzAut1(2);
				// DEBUG?
			System.out
					.println("A la cinta de transferencia le llega un conjunto montado");
			jLabel4.setIcon(resourceMap.getIcon("jLabel4_Conjunto.icon"));
			break;
		case 2:// conjuntos montados moviendose por la cinta de transferencia
				// DEBUG?
			System.out.println("Conjuntos montados avanzan por la cinta");
			if(_trans) {
			jLabel4.setIcon(resourceMap.getIcon("jLabel4_ConjsMoviendose.icon"));
			_trans = false;
			} else {
				jLabel4.setIcon(resourceMap.getIcon("jLabel4_Conjunto.icon"));
				_trans = true;	
			}
			jLabel13.setIcon(resourceMap.getIcon("puntoVerde"));
			break;
		case 3:// conjunto montado en deposito/posicion final de la cinta
				// DEBUG?
			System.out
					.println("Conjunto montado listo para ser recogido por el robot 2");
			jLabel4.setIcon(resourceMap.getIcon("jLabel4_ConjPosFinal.icon"));
			jLabel13.setIcon(resourceMap.getIcon("puntoRojo"));
			break;
		}
	}

	/**
	 * Cambia la figura que se muestra en la etiqueta de la estacion de
	 * soldadura
	 * 
	 * @param estadoActualEstacionSoldadura
	 *            toma un valor de entre los posibles estados en los que puede
	 *            estar la estacion de soldadura
	 */
	public void modificarEstacionSoldadura(
			MessageTypes estadoActualEstacionSoldadura) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		switch (estadoActualEstacionSoldadura) {

		case COMIENZO_SOLDADURA:// la estacion de soldadura recibe un conjunto
								// montado
			// DEBUG?
			System.out
					.println("Llega un conjunto montado a la Estacion de soldadura");
			jLabel5.setIcon(resourceMap.getIcon("jLabel5_ConjMontado.icon"));
			jLabel18.setIcon(resourceMap.getIcon("puntoVerde"));
			break;
		case FIN_SOLDADURA:// la estacion de soldadura genera el conjunto
							// soldado
			// DEBUG?
			System.out.println("El conjunto esta soldado");
			jLabel5.setIcon(resourceMap.getIcon("jLabel5_ConjSoldado.icon"));
			jLabel18.setIcon(resourceMap.getIcon("puntoRojo"));
			break;
			
		case EXIT:
			System.out.println("Se vacia la estacion");
			jLabel5.setIcon(resourceMap.getIcon("jLabel5.icon"));
			jLabel18.setIcon(resourceMap.getIcon("puntoRojo"));
			break;
		}
	}

	/**
	 * Cambia el valor del numero de conjuntos montados que se encuentran en la
	 * cinta de transferencia
	 */
	public void modificarConjuntosCintaTransferencia(int posicionesConjuntos) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		// DEBUG?
		System.out.println("Numero de conjuntos de la cinta de transferencia: "
				+ posicionesConjuntos);
		jLabel13.setText("" + posicionesConjuntos);
	}

	/************************************************************ AUTOMATA 3 *******************************************************************************/

	/**
	 * Cambia la figura que se muestra en la etiqueta de la estacion de
	 * inspeccion de soldadura
	 * 
	 * @param estadoActualEstacionInspeccion
	 *            toma un valor de entre los posibles estados en los que puede
	 *            estar la estacion de inspeccion de soldadura
	 */
	public void modificarEstacionInspeccion(int estadoActualEstacionInspeccion) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		switch (estadoActualEstacionInspeccion) {

		case 1:// la estacion de inspeccion esta sin recibir conjunto soldado
				// modificarLuzAut1(2);
				// DEBUG?
			System.out.println("Estacion de inspeccion en reposo");
			jLabel3.setIcon(resourceMap.getIcon("jLabel3.icon"));
			jLabel58.setIcon(resourceMap.getIcon("puntoRojo"));
			break;
		case 2:// la estacion de inspeccion recibe un conjunto soldado
				// DEBUG?
			System.out
					.println("Llega un conjunto soldado a la Estacion de inspeccion");
			jLabel3.setIcon(resourceMap.getIcon("jLabel3_ConjSoldado.icon"));
			jLabel58.setIcon(resourceMap.getIcon("puntoVerde"));
			break;
		case 3:// la estacion de inspeccion valida/rechaza el conjunto soldado
				// DEBUG?
			System.out.println("El conjunto ha sido inspeccionado");
			jLabel3.setIcon(resourceMap.getIcon("jLabel3_Inspeccionado.icon"));
			jLabel58.setIcon(resourceMap.getIcon("puntoRojo"));
			break;
		}
	}

	/**
	 * Cambia la figura que se muestra en la etiqueta de la cinta de salida
	 * 
	 * @param estadoActualCintaSalida
	 *            toma un valor de entre los posibles estados en los que puede
	 *            estar la cinta de salida
	 */
	public void modificarCintaSalida(int estadoActualCintaSalida) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		switch (estadoActualCintaSalida) {

		case 1:// cinta de salida con un solo conjunto valido
				// DEBUG?
			System.out
					.println("A la cinta de salida le llega un conjunto valido");
			jLabel11.setIcon(resourceMap.getIcon("jLabel11.icon"));
			jLabel17.setIcon(resourceMap.getIcon("puntoVerde"));
			break;
		case 2:// conjuntos validos moviendose por la cinta de salida
				// DEBUG?
			System.out.println("Conjuntos validos avanzan por la cinta");
			jLabel11.setIcon(resourceMap.getIcon("jLabel11_Valido.icon"));
			jLabel11.setIcon(resourceMap.getIcon("jLabel11_ConjsValidos.icon"));
			jLabel17.setIcon(resourceMap.getIcon("puntoVerde"));
			break;
		}
	}

	/**
	 * Cambia el valor del numero de conjuntos aceptados procesados en la ultima
	 * tanda de fabricacion
	 */
	public void modificarConjuntosAceptados(int conjuntosAceptados) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		// DEBUG?
		System.out.println("Numero de conjuntos aceptados en la ultima tanda: "
				+ conjuntosAceptados);
		// jLabel49.setText(resourceMap.getString(Integer.toString(conjuntosAceptados)));
	}

	/**
	 * Cambia el valor del numero de conjuntos rechazados procesados en la
	 * ultima tanda de fabricacion
	 */
	public void modificarConjuntosRechazados(int conjuntosRechazados) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		// DEBUG?
		System.out
				.println("Numero de conjuntos rechazados en la ultima tanda: "
						+ conjuntosRechazados);
		// jLabel18.setText("" + conjuntosRechazados);
	}

	/**
	 * Cambia el valor del numero de conjuntos validos que se encuentran en la
	 * cinta de salida
	 */
	public void modificarConjuntosCintaSalida(int posicionesConjuntos) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		// DEBUG?
		System.out.println("Numero de conjuntos de la cinta de salida: "
				+ posicionesConjuntos);
		// jLabel17.setText("" + posicionesConjuntos);
	}

	/**
	 * Cambia la figura que se muestra en la etiqueta de la cinta de rechazo
	 * 
	 * @param estadoActualCintaRechazo
	 *            toma un valor de entre los posibles estados en los que puede
	 *            estar la cinta de rechazo
	 */
	/*
	 * public void modificarCintaRechazo(int estadoActualCintaRechazo){ //
	 * org.jdesktop.application.ResourceMap resourceMap =
	 * org.jdesktop.application
	 * .Application.getInstance(scada.PieBotApp.class).getContext
	 * ().getResourceMap(PieBotView.class); switch(estadoActualCintaRechazo) {
	 * 
	 * case 1://cinta con un solo conjunto rechazado //modificarLuzAut1(2);
	 * //DEBUG?
	 * System.out.println("A la cinta de rechazo le llega un conjunto defectuoso"
	 * ); //Cinta1.setIcon(resourceMap.getIcon("Cinta1Estado1.icon")); break;
	 * case 2://conjuntos defectuosos moviendose por la cinta de transferencia
	 * //DEBUG? System.out.println("Conjuntos rechazados avanzan por la cinta");
	 * //Cinta1.setIcon(resourceMap.getIcon("Cinta1Estado2.icon")); break; case
	 * 3://conjunto rechazado cae por gravedad en el deposito final de conjuntos
	 * defectuosos //DEBUG? System.out.println(
	 * "Conjunto defectuoso cae en el deposito y esta listo para ser recogido por un operador"
	 * ); //Cinta1.setIcon(resourceMap.getIcon("Cinta1Estado3.icon")); break; }
	 * }
	 */

	/************************************************************ AUTOMATA MAESTRO ***************************************************************************/

	/**
	 * Cambia la figura que se muestra en la etiqueta del robot 2
	 * 
	 * @param posicion
	 *            toma un valor de entre los posibles estados del enumerado en
	 *            los que puede estar el robot 2
	 */
	public void modificarRobot2(PosicionesRobot2 posicion) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);

		switch (posicion) {

		case EN_REPOSO:// el robot 2 esta esperando realizar una accion
			// DEBUG?
			System.out.println("Robot 2 en reposo");
			jLabel_fig_Robot2.setIcon(resourceMap
					.getIcon("jLabel_fig_Robot2_Reposo.icon"));
			break;
		case EN_CINTA_TRANSFERENCIA:// el robot 2 recoge conjunto montado de la
									// cinta de transferencia
			// DEBUG?
			System.out.println("Robot 2 en cinta de trasferencia");
			jLabel_fig_Robot2.setIcon(resourceMap
					.getIcon("jLabel_fig_Robot2_CintaTransf.icon"));
			// Pone bolica cinta de transferencia en verde
			jLabel13.setIcon(resourceMap.getIcon("puntoVerde"));
			break;
		case EN_SOLDADOR:// el robot 2 lleva un conjunto montado a la estacion
							// de soldadura
			// DEBUG?
			System.out.println("Robot 2 en estacion de soldadura");
			jLabel_fig_Robot2.setIcon(resourceMap.getIcon("jLabel_fig_Robot2_Soldador.icon"));
			break;
		case EN_VERIFICADOR:// el robot 2 lleva un conjunto soldado a la
							// estacion de verificacion
			// DEBUG?
			System.out.println("Robot 2 en estacion de control de soldadura");
			jLabel_fig_Robot2.setIcon(resourceMap.getIcon("jLabel_fig_Robot2_Verificador.icon"));
			this.modificarEstacionSoldadura(MessageTypes.EXIT);
			break;
		case EN_CINTA_ACEPTADOS:// el robot 2 deposita un conjunto valido en la
								// cinta de aceptados
			// DEBUG?
			System.out.println("Robot 2 en cinta de conjuntos aceptados");
			jLabel_fig_Robot2.setIcon(resourceMap.getIcon("jLabel_fig_Robot2_CintaAcept.icon"));
			//this.modificarEstacionInspeccion(1);
			break;
		case EN_CINTA_RECHAZADOS:// el robot 2 deposita un conjunto invalido en
									// la cinta de rechazados
			// DEBUG?
			System.out.println("Robot 2 en cinta de conjuntos rechazados");
			jLabel_fig_Robot2.setIcon(resourceMap.getIcon("jLabel_fig_Robot2_CintaRech.icon"));
			System.out.println("Tambi�n se actualizan las imagenes de la cinta de rechazos y del deposito de conjuntos defectuosos");
			jLabel12.setIcon(resourceMap.getIcon("jLabel12_CajaRechazados.icon"));
			//this.modificarEstacionInspeccion(1);
			break;
		case EN_OTRO_SITIO:// el robot 2 esta realizando otra accion diferente a
							// estas
			// DEBUG?
			System.out.println("Robot 2 en otra transicion intermedia");
			jLabel_fig_Robot2.setIcon(resourceMap.getIcon("jLabel_fig_Robot2_OtroSitio.icon"));
			break;
		}
	}

	/**
	 * Cambia la figura que se muestra en la etiqueta de la luz del estado del
	 * automata 1 y, por tanto, del robot 1.
	 * 
	 * @param estado
	 *            toma un valor dependiendo si el automata 1 esta apagado o
	 *            encendido.
	 */
	public void modificarLuzAut1(boolean estado) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		if (estado) {
			// luz verde
			jLabelAutomata1
					.setIcon(resourceMap.getIcon("jLabelAutomata1.icon"));
			jLabelRobot1.setIcon(resourceMap.getIcon("jLabelRobot1.icon"));
			jTextAreaLogConsole.setText(jTextAreaLogConsole.getText()
					+ "\nConectando con Aut\u00f3mata 1...\t\t[OK]");
		} else {
			// luz roja
			jLabelAutomata1.setIcon(resourceMap
					.getIcon("jLabelAutomata1Caido.icon"));
			jLabelRobot1.setIcon(resourceMap.getIcon("jLabelRobot1Caido.icon"));
			jTextAreaLogConsole.setText(jTextAreaLogConsole.getText()
					+ "\nConectando con Aut\u00f3mata 1...\t\t[ERROR]");
		}
	}

	/**
	 * Cambia la figura que se muestra en la etiqueta de la luz del estado del
	 * automata 2
	 * 
	 * @param estado
	 *            toma un valor dependiendo si el automata 2 esta apagado o
	 *            encendido.
	 */
	public void modificarLuzAut2(boolean estado) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		if (estado) {
			// luz verde
			jLabelAutomata2
					.setIcon(resourceMap.getIcon("jLabelAutomata2.icon"));
			jTextAreaLogConsole.setText(jTextAreaLogConsole.getText()
					+ "\nConectando con Aut\u00f3mata 2...\t\t[OK]");
		} else {
			// luz roja
			jLabelAutomata2.setIcon(resourceMap
					.getIcon("jLabelAutomata2Caido.icon"));
			jTextAreaLogConsole.setText(jTextAreaLogConsole.getText()
					+ "\nConectando con Aut\u00f3mata 2...\t\t[ERROR]");
		}
	}

	/**
	 * Cambia la figura que se muestra en la etiqueta de la luz del estado del
	 * automata 3
	 * 
	 * @param estado
	 *            toma un valor dependiendo si el automata 3 esta apagado o
	 *            encendido.
	 */
	public void modificarLuzAut3(boolean estado) {
		org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
				.getInstance(vista.GLOBEXApp.class).getContext()
				.getResourceMap(GLOBEXView.class);
		if (estado) {
			// luz verde
			jLabelAutomata3
					.setIcon(resourceMap.getIcon("jLabelAutomata3.icon"));
			jTextAreaLogConsole.setText(jTextAreaLogConsole.getText()
					+ "\nConectando con Aut\u00f3mata 3...\t\t[OK]");
		} else {
			// luz roja
			jLabelAutomata3.setIcon(resourceMap
					.getIcon("jLabelAutomata3Caido.icon"));
			jTextAreaLogConsole.setText(jTextAreaLogConsole.getText()
					+ "\nConectando con Aut\u00f3mata 3...\t\t[ERROR]");
		}
	}

	/**
	 * Incrementa en 1 los contadores de piezas aceptadas de Informes. Actualiza
	 * el contador de la pestana informes
	 */
	public void incrementarContadorConjuntosAceptados() {
		Informes.sumarSesion_correctos();
		Informes.sumarTotal_correctos();
		Informes.guardar();

		jLabel49.setText("" + Informes.getSesion_correctos());
		jLabel51.setText("" + Informes.getTotal_correctos());

		jTextAreaLogConsole.setText(jTextAreaLogConsole.getText()
				+ "\n\tConjunto aceptado entregado");

	}

	/**
	 * Incrementa en 1 los contadores de piezas rechazadas de Informes.
	 * Actualiza el contador de la pestana informes
	 */
	public void incrementarContadorConjuntosRechazados() {
		Informes.sumarSesion_incorrectos();
		Informes.sumarTotal_incorrectos();
		Informes.guardar();

		jLabel48.setText("" + Informes.getSesion_incorrectos());
		jLabel50.setText("" + Informes.getTotal_incorrectos());

		jTextAreaLogConsole.setText(jTextAreaLogConsole.getText()
				+ "\n\tConjunto rechazado descartado");
	}

	/**
	 * Incrementa en 1 el contador de arranques de Informes. Actualiza el
	 * contador de la pestana informes
	 */
	public void incrementarContadorArranques() {
		Informes.sumarTotal_arranques();
		Informes.guardar();

		jLabel54.setText("" + Informes.getTotal_arranques());

	}

	/**
	 * Incrementa en 1 el contador de paradas normales de Informes. Actualiza el
	 * contador de la pestana informes
	 */
	public void incrementarContadorParadasNormales() {
		Informes.sumarTotal_paradas_normales();
		Informes.guardar();

		jLabel53.setText("" + Informes.getTotal_paradas_normales());

	}

	/**
	 * Incrementa en 1 el contador de paradas de emergencia de Informes.
	 * Actualiza el contador de la pestana informes
	 */
	public void incrementarContadorParadasEmergencia() {
		Informes.sumarTotal_paradas_emergencia();
		Informes.guardar();

		jLabel52.setText("" + Informes.getTotal_paradas_emergencia());

	}
}
